Fixes for MultiDevice fixture and DebugSession

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-09-17 21:17:36 +00:00
committed by Compute-Runtime-Automation
parent 006afacc95
commit 4d4433fa5f
2 changed files with 4 additions and 4 deletions

View File

@@ -114,9 +114,9 @@ void MultipleDevicesWithCustomHwInfo::SetUp() {
hwInfo.gtSystemInfo.MaxEuPerSubSlice = numEuPerSubslice;
hwInfo.gtSystemInfo.NumThreadsPerEu = numThreadsPerEu;
hwInfo.gtSystemInfo.MaxSlicesSupported = 2 * sliceCount;
hwInfo.gtSystemInfo.MaxSubSlicesSupported = 2 * subsliceCount;
hwInfo.gtSystemInfo.MaxDualSubSlicesSupported = 2 * subsliceCount;
hwInfo.gtSystemInfo.MaxSlicesSupported = sliceCount;
hwInfo.gtSystemInfo.MaxSubSlicesSupported = sliceCount * subsliceCount;
hwInfo.gtSystemInfo.MaxDualSubSlicesSupported = sliceCount * subsliceCount;
hwInfo.gtSystemInfo.MultiTileArchInfo.IsValid = 1;
hwInfo.gtSystemInfo.MultiTileArchInfo.TileCount = numSubDevices;

View File

@@ -63,7 +63,7 @@ DebugSession::DebugSession(const zet_debug_config_t &config, Device *device) : c
const uint32_t numSubslicesPerSlice = hwInfo.gtSystemInfo.MaxSubSlicesSupported / hwInfo.gtSystemInfo.MaxSlicesSupported;
const uint32_t numEuPerSubslice = hwInfo.gtSystemInfo.MaxEuPerSubSlice;
const uint32_t numThreadsPerEu = (hwInfo.gtSystemInfo.ThreadCount / hwInfo.gtSystemInfo.EUCount);
uint32_t subDeviceCount = 1;
uint32_t subDeviceCount = std::max(1u, connectedDevice->getNEODevice()->getNumSubDevices());
for (uint32_t tileIndex = 0; tileIndex < subDeviceCount; tileIndex++) {
for (uint32_t sliceID = 0; sliceID < hwInfo.gtSystemInfo.MaxSlicesSupported; sliceID++) {