mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Improve queries with number of SubDevices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
69ae9dc9c2
commit
0345d9f707
@ -289,7 +289,7 @@ cl_int CL_API_CALL clCreateSubDevices(cl_device_id inDevice,
|
||||
if (pInDevice == nullptr) {
|
||||
return CL_INVALID_DEVICE;
|
||||
}
|
||||
auto subDevicesCount = pInDevice->getNumAvailableDevices();
|
||||
auto subDevicesCount = pInDevice->getNumSubDevices();
|
||||
if (subDevicesCount <= 1) {
|
||||
return CL_DEVICE_PARTITION_FAILED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user