@@ -26,42 +26,38 @@ DebugSession::DebugSession(const zet_debug_config_t &config, Device *device) : c
2626void DebugSession::createEuThreads () {
2727 if (connectedDevice) {
2828
29- bool isRootDevice = !connectedDevice->getNEODevice ()->isSubDevice ();
3029 bool isSubDevice = connectedDevice->getNEODevice ()->isSubDevice ();
3130
32- if ((isRootDevice && NEO::DebugManager.flags .ExperimentalEnableTileAttach .get () == 0 ) ||
33- (isSubDevice && NEO::DebugManager.flags .ExperimentalEnableTileAttach .get () == 1 )) {
34- auto &hwInfo = connectedDevice->getHwInfo ();
35- const uint32_t numSubslicesPerSlice = hwInfo.gtSystemInfo .MaxSubSlicesSupported / hwInfo.gtSystemInfo .MaxSlicesSupported ;
36- const uint32_t numEuPerSubslice = hwInfo.gtSystemInfo .MaxEuPerSubSlice ;
37- const uint32_t numThreadsPerEu = (hwInfo.gtSystemInfo .ThreadCount / hwInfo.gtSystemInfo .EUCount );
38- uint32_t subDeviceCount = std::max (1u , connectedDevice->getNEODevice ()->getNumSubDevices ());
31+ auto &hwInfo = connectedDevice->getHwInfo ();
32+ const uint32_t numSubslicesPerSlice = hwInfo.gtSystemInfo .MaxSubSlicesSupported / hwInfo.gtSystemInfo .MaxSlicesSupported ;
33+ const uint32_t numEuPerSubslice = hwInfo.gtSystemInfo .MaxEuPerSubSlice ;
34+ const uint32_t numThreadsPerEu = (hwInfo.gtSystemInfo .ThreadCount / hwInfo.gtSystemInfo .EUCount );
35+ uint32_t subDeviceCount = std::max (1u , connectedDevice->getNEODevice ()->getNumSubDevices ());
3936
40- UNRECOVERABLE_IF (isSubDevice && subDeviceCount > 1 );
37+ UNRECOVERABLE_IF (isSubDevice && subDeviceCount > 1 );
4138
42- for (uint32_t tileIndex = 0 ; tileIndex < subDeviceCount; tileIndex++) {
39+ for (uint32_t tileIndex = 0 ; tileIndex < subDeviceCount; tileIndex++) {
4340
44- if (isSubDevice || subDeviceCount == 1 ) {
45- tileIndex = Math::log2 (static_cast <uint32_t >(connectedDevice->getNEODevice ()->getDeviceBitfield ().to_ulong ()));
46- }
41+ if (isSubDevice || subDeviceCount == 1 ) {
42+ tileIndex = Math::log2 (static_cast <uint32_t >(connectedDevice->getNEODevice ()->getDeviceBitfield ().to_ulong ()));
43+ }
4744
48- for (uint32_t sliceID = 0 ; sliceID < hwInfo.gtSystemInfo .MaxSlicesSupported ; sliceID++) {
49- for (uint32_t subsliceID = 0 ; subsliceID < numSubslicesPerSlice; subsliceID++) {
50- for (uint32_t euID = 0 ; euID < numEuPerSubslice; euID++) {
45+ for (uint32_t sliceID = 0 ; sliceID < hwInfo.gtSystemInfo .MaxSlicesSupported ; sliceID++) {
46+ for (uint32_t subsliceID = 0 ; subsliceID < numSubslicesPerSlice; subsliceID++) {
47+ for (uint32_t euID = 0 ; euID < numEuPerSubslice; euID++) {
5148
52- for (uint32_t threadID = 0 ; threadID < numThreadsPerEu; threadID++) {
49+ for (uint32_t threadID = 0 ; threadID < numThreadsPerEu; threadID++) {
5350
54- EuThread::ThreadId thread = {tileIndex, sliceID, subsliceID, euID, threadID};
51+ EuThread::ThreadId thread = {tileIndex, sliceID, subsliceID, euID, threadID};
5552
56- allThreads[uint64_t (thread)] = std::make_unique<EuThread>(thread);
57- }
53+ allThreads[uint64_t (thread)] = std::make_unique<EuThread>(thread);
5854 }
5955 }
6056 }
57+ }
6158
62- if (isSubDevice || subDeviceCount == 1 ) {
63- break ;
64- }
59+ if (isSubDevice || subDeviceCount == 1 ) {
60+ break ;
6561 }
6662 }
6763 }
0 commit comments