mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
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:
committed by
sys_ocldev
parent
d2c07cb9ed
commit
9dab9a654d
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user