Add debug flag to enable support for context with multiple root devices

re-capture debug flags for ULT

Related-To: NEO-3691
Change-Id: I3b20e53c11bac3b6f0c97556d3f2b193df9541c0
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-04-27 16:12:40 +02:00
committed by sys_ocldev
parent d2c07cb9ed
commit 9dab9a654d
4 changed files with 135 additions and 122 deletions

View File

@@ -167,12 +167,14 @@ bool Context::createImpl(const cl_context_properties *properties,
this->driverDiagnostics = driverDiagnostics.release();
if (inputDevices.size() > 1) {
auto rootDeviceIndex = inputDevices[0]->getRootDeviceIndex();
for (const auto &device : inputDevices) {
if (device->getRootDeviceIndex() != rootDeviceIndex) {
DEBUG_BREAK_IF("No support for context with multiple root devices");
errcodeRet = CL_OUT_OF_HOST_MEMORY;
return false;
if (!DebugManager.flags.EnableMultiRootDeviceContexts.get()) {
auto rootDeviceIndex = inputDevices[0]->getRootDeviceIndex();
for (const auto &device : inputDevices) {
if (device->getRootDeviceIndex() != rootDeviceIndex) {
DEBUG_BREAK_IF("No support for context with multiple root devices");
errcodeRet = CL_OUT_OF_HOST_MEMORY;
return false;
}
}
}
}