Do not execute multi-tile command list on single-tile command queue

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-11-02 16:58:19 +00:00
committed by Compute-Runtime-Automation
parent d087c6a6c7
commit 7d109c42bc
8 changed files with 62 additions and 5 deletions

View File

@@ -53,6 +53,7 @@ ze_result_t CommandQueueImp::initialize(bool copyOnly, bool isInternal) {
commandStream->replaceGraphicsAllocation(bufferAllocation);
isCopyOnlyCommandQueue = copyOnly;
preemptionCmdSyncProgramming = getPreemptionCmdProgramming();
activeSubDevices = static_cast<uint32_t>(csr->getOsContext().getDeviceBitfield().count());
}
return returnValue;
}
@@ -156,8 +157,9 @@ CommandQueue *CommandQueue::create(uint32_t productFamily, Device *device, NEO::
}
}
csr->getOsContext().ensureContextInitialized();
csr->initDirectSubmission(*device->getNEODevice(), csr->getOsContext());
auto &osContext = csr->getOsContext();
osContext.ensureContextInitialized();
csr->initDirectSubmission(*device->getNEODevice(), osContext);
return commandQueue;
}