Improve queries with number of SubDevices

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-08-31 16:49:46 +00:00
committed by Compute-Runtime-Automation
parent 69ae9dc9c2
commit 0345d9f707
44 changed files with 229 additions and 173 deletions

View File

@ -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;
}