mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
fix: return 0 as PARTITION MAX SUBDEVICES in expose single device mode
Related-To: NEO-16116 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e727894d06
commit
8074560e8a
@@ -222,7 +222,9 @@ void ClDevice::initializeCaps() {
|
||||
deviceInfo.deviceAvailable = CL_TRUE;
|
||||
deviceInfo.compilerAvailable = CL_TRUE;
|
||||
deviceInfo.parentDevice = nullptr;
|
||||
deviceInfo.partitionMaxSubDevices = device.getNumSubDevices();
|
||||
if (!rootDeviceEnvironment.isExposeSingleDeviceMode()) {
|
||||
deviceInfo.partitionMaxSubDevices = device.getNumSubDevices();
|
||||
}
|
||||
if (deviceInfo.partitionMaxSubDevices > 0) {
|
||||
deviceInfo.partitionProperties[0] = CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN;
|
||||
deviceInfo.partitionProperties[1] = 0;
|
||||
|
||||
Reference in New Issue
Block a user