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:
Mateusz Hoppe
2025-09-12 14:38:05 +00:00
committed by Compute-Runtime-Automation
parent e727894d06
commit 8074560e8a
2 changed files with 24 additions and 1 deletions

View File

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