mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Correct DEBUG_BREAK in cl device info
reference count should be equals to one only for root devices Related-To: NEO-3691 Change-Id: Ic4b83782e68eaf1823abcf4a33819c6f2a4b483f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
71bd96ad71
commit
f30b072b59
@@ -179,7 +179,7 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
|
||||
break;
|
||||
case CL_DEVICE_REFERENCE_COUNT: {
|
||||
cl_int ref = this->getReference();
|
||||
DEBUG_BREAK_IF(ref != 1);
|
||||
DEBUG_BREAK_IF(ref != 1 && !deviceInfo.parentDevice);
|
||||
param = static_cast<cl_uint>(ref);
|
||||
src = ¶m;
|
||||
retSize = srcSize = sizeof(param);
|
||||
|
||||
Reference in New Issue
Block a user