mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
Second level affinity mask support
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
317ef3776c
commit
ad15fe2970
@@ -136,7 +136,17 @@ void ExecutionEnvironment::parseAffinityMask() {
|
||||
if (subEntries.size() > 1) {
|
||||
uint32_t subDeviceIndex = StringHelpers::toUint32t(subEntries[1]);
|
||||
|
||||
if (subDeviceIndex < subDevicesCount) {
|
||||
bool enableSecondLevelEngineInstanced = ((subDevicesCount == 1) &&
|
||||
(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled > 1) &&
|
||||
DebugManager.flags.AllowSingleTileEngineInstancedSubDevices.get());
|
||||
|
||||
if (enableSecondLevelEngineInstanced) {
|
||||
UNRECOVERABLE_IF(subEntries.size() != 2);
|
||||
|
||||
if (subDeviceIndex < hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled) {
|
||||
affinityMaskHelper[rootDeviceIndex].enableEngineInstancedSubDevice(0, subDeviceIndex); // Mask: X.Y
|
||||
}
|
||||
} else if (subDeviceIndex < subDevicesCount) {
|
||||
if (subEntries.size() == 2) {
|
||||
affinityMaskHelper[rootDeviceIndex].enableGenericSubDevice(subDeviceIndex); // Mask: X.Y
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user