feature: signaling in-order dependency counter on skl_and_later platforms

Related-To: NEO-7966

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-07-20 10:16:14 +00:00
committed by Compute-Runtime-Automation
parent ff6f64d9be
commit 87579e9bcf
2 changed files with 95 additions and 0 deletions

View File

@@ -240,6 +240,17 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelWithParams(K
event->setKernelForPrintf(kernel);
}
if (this->inOrderExecutionEnabled && !launchParams.isKernelSplitOperation) {
NEO::PipeControlArgs args;
uint64_t counterAddress = this->inOrderDependencyCounterAllocation->getGpuAddress() + this->inOrderAllocationOffset;
NEO::MemorySynchronizationCommands<GfxFamily>::addSingleBarrier(*commandContainer.getCommandStream(),
NEO::PostSyncMode::ImmediateData,
counterAddress,
this->inOrderDependencyCounter + 1,
args);
}
return ZE_RESULT_SUCCESS;
}