mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
L0Debug - Fix scratch offset calculation
- euRatio should only affect EUs offsets - not thread offsets Resolves: NEO-7520 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
54db9fddb7
commit
e0370d25b9
@@ -278,12 +278,12 @@ size_t DebugSession::getPerThreadScratchOffset(size_t ptss, EuThread::ThreadId t
|
||||
|
||||
const auto &hwInfoConfig = *NEO::HwInfoConfig::get(hwInfo.platform.eProductFamily);
|
||||
uint32_t threadEuRatio = hwInfoConfig.getThreadEuRatioForScratch(hwInfo);
|
||||
|
||||
uint32_t multiplyFactor = 1;
|
||||
if (threadEuRatio / numThreadsPerEu > 1) {
|
||||
ptss *= threadEuRatio / numThreadsPerEu;
|
||||
multiplyFactor = threadEuRatio / numThreadsPerEu;
|
||||
}
|
||||
|
||||
auto threadOffset = (((threadId.slice * numSubslicesPerSlice + threadId.subslice) * numEuPerSubslice + threadId.eu) * numThreadsPerEu + threadId.thread) * ptss;
|
||||
auto threadOffset = (((threadId.slice * numSubslicesPerSlice + threadId.subslice) * numEuPerSubslice + threadId.eu) * numThreadsPerEu * multiplyFactor + threadId.thread) * ptss;
|
||||
return threadOffset;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user