mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Fixes for MultiDevice fixture and DebugSession
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
006afacc95
commit
4d4433fa5f
@@ -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;
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user