fix: metric query hangs gpu when direct submission is enabled

Related-To: NEO-11052
Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
This commit is contained in:
Robert Krzemień
2024-05-15 15:33:42 +00:00
committed by Compute-Runtime-Automation
parent 0a27aa9f7b
commit 965060385c

View File

@@ -70,6 +70,8 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
auto ret = ZE_RESULT_SUCCESS;
this->device->activateMetricGroups();
auto lockCSR = this->csr->obtainUniqueOwnership();
auto neoDevice = device->getNEODevice();
@@ -107,7 +109,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
ctx.lockScratchController = lockScratchController;
this->startingCmdBuffer = &this->commandStream;
this->device->activateMetricGroups();
if (this->isCopyOnlyCommandQueue) {
ret = this->executeCommandListsCopyOnly(ctx, numCommandLists, phCommandLists, hFence, nullptr, 0, nullptr);