mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
L0 debug - fix windows bitmask decode
Keep threads created in EU range (0,7) Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ac426f7fdc
commit
99ef6c499b
@@ -32,11 +32,10 @@ void DebugSession::createEuThreads() {
|
||||
bool isSubDevice = connectedDevice->getNEODevice()->isSubDevice();
|
||||
|
||||
auto &hwInfo = connectedDevice->getHwInfo();
|
||||
const uint32_t numSubslicesPerSlice = hwInfo.gtSystemInfo.MaxSubSlicesSupported / hwInfo.gtSystemInfo.MaxSlicesSupported;
|
||||
const uint32_t numSubslicesPerSlice = std::max(hwInfo.gtSystemInfo.MaxSubSlicesSupported, hwInfo.gtSystemInfo.MaxDualSubSlicesSupported) / hwInfo.gtSystemInfo.MaxSlicesSupported;
|
||||
const uint32_t numEuPerSubslice = hwInfo.gtSystemInfo.MaxEuPerSubSlice;
|
||||
const uint32_t numThreadsPerEu = (hwInfo.gtSystemInfo.ThreadCount / hwInfo.gtSystemInfo.EUCount);
|
||||
uint32_t subDeviceCount = std::max(1u, connectedDevice->getNEODevice()->getNumSubDevices());
|
||||
|
||||
UNRECOVERABLE_IF(isSubDevice && subDeviceCount > 1);
|
||||
|
||||
for (uint32_t tileIndex = 0; tileIndex < subDeviceCount; tileIndex++) {
|
||||
@@ -139,6 +138,7 @@ ze_device_thread_t DebugSession::convertToApi(EuThread::ThreadId threadId) {
|
||||
}
|
||||
|
||||
std::vector<EuThread::ThreadId> DebugSession::getSingleThreadsForDevice(uint32_t deviceIndex, ze_device_thread_t physicalThread, const NEO::HardwareInfo &hwInfo) {
|
||||
|
||||
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);
|
||||
|
||||
@@ -552,7 +552,6 @@ ze_result_t DebugSessionWindows::resumeImp(const std::vector<EuThread::ThreadId>
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
applyResumeWa(bitmask.get(), bitmaskSize);
|
||||
printBitmask(bitmask.get(), bitmaskSize);
|
||||
|
||||
KM_ESCAPE_INFO escapeInfo = {0};
|
||||
|
||||
Reference in New Issue
Block a user