Cycles: oneAPI: Use max_compute_units in get_num_multiprocessors
Instead of returning 0 in case the Intel extension for getting the count of Execution Units isn't available, we now use sycl::info::device::max_compute_units. We keep using the Intel extension in priority since it logically goes with sycl::ext::intel::info::device::gpu_hw_threads_per_eu used in get_max_num_threads_per_multiprocessor(), for which there is no sycl::info::device::max_threads_per_compute_unit replacement yet.
This commit is contained in:
@@ -1591,7 +1591,7 @@ int OneapiDevice::get_num_multiprocessors()
|
||||
if (device.has(sycl::aspect::ext_intel_gpu_eu_count)) {
|
||||
return device.get_info<sycl::ext::intel::info::device::gpu_eu_count>();
|
||||
}
|
||||
return 0;
|
||||
return device.get_info<sycl::info::device::max_compute_units>();
|
||||
}
|
||||
|
||||
int OneapiDevice::get_max_num_threads_per_multiprocessor()
|
||||
|
||||
Reference in New Issue
Block a user