mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
OpenCL Queue Families extension 1/n
Basic implementation, some things will be tweaked in future commits Related-To: NEO-5120 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2be1b36422
commit
14f92cc7a1
@@ -188,12 +188,21 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
|
||||
src = ¶m;
|
||||
}
|
||||
break;
|
||||
case CL_DEVICE_NUM_QUEUE_FAMILIES_INTEL:
|
||||
srcSize = retSize = sizeof(cl_uint);
|
||||
param = static_cast<cl_uint>(deviceInfo.queueFamilyProperties.size());
|
||||
src = ¶m;
|
||||
break;
|
||||
case CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL:
|
||||
if (simultaneousInterops.size() > 1u) {
|
||||
srcSize = retSize = sizeof(cl_uint) * simultaneousInterops.size();
|
||||
src = &simultaneousInterops[0];
|
||||
}
|
||||
break;
|
||||
case CL_DEVICE_QUEUE_FAMILY_PROPERTIES_INTEL:
|
||||
src = deviceInfo.queueFamilyProperties.data();
|
||||
retSize = srcSize = deviceInfo.queueFamilyProperties.size() * sizeof(cl_queue_family_properties_intel);
|
||||
break;
|
||||
case CL_DEVICE_REFERENCE_COUNT: {
|
||||
cl_int ref = this->getReference();
|
||||
DEBUG_BREAK_IF(ref != 1 && !deviceInfo.parentDevice);
|
||||
|
||||
Reference in New Issue
Block a user