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:
Mateusz Jablonski
2020-05-20 17:09:16 +02:00
committed by sys_ocldev
parent 71bd96ad71
commit f30b072b59

View File

@@ -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 = &param;
retSize = srcSize = sizeof(param);