mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
fix: respect affinity mask with COMBINED hierarchy in OCL
Related-To: GSD-9560 Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4e20673e96
commit
a180afa2e6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -93,7 +93,7 @@ bool Device::genericSubDevicesAllowed() {
|
||||
deviceBitfield = maxNBitValue(subDeviceCount);
|
||||
deviceBitfield &= deviceMask;
|
||||
numSubDevices = static_cast<uint32_t>(deviceBitfield.count());
|
||||
if (numSubDevices == 1) {
|
||||
if (numSubDevices == 1 && (!executionEnvironment->isCombinedDeviceHierarchy() || subDeviceCount == 1)) {
|
||||
numSubDevices = 0;
|
||||
}
|
||||
|
||||
@@ -130,13 +130,14 @@ bool Device::createSubDevices() {
|
||||
}
|
||||
|
||||
bool Device::createDeviceImpl() {
|
||||
// init sub devices first
|
||||
if (!createSubDevices()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
preemptionMode = PreemptionHelper::getDefaultPreemptionMode(getHardwareInfo());
|
||||
|
||||
if (!isSubDevice()) {
|
||||
// init sub devices first
|
||||
if (!createSubDevices()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// initialize common resources once
|
||||
initializeCommonResources();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user