Skip to content

Commit

Permalink
refactor: remove not needed code
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Jablonski <[email protected]>
Source: fafc0e1
  • Loading branch information
JablonskiMateusz authored and Compute-Runtime-Automation committed Sep 16, 2024
1 parent 481434f commit 7271050
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions level_zero/tools/source/debug/debug_session_imp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,17 +906,14 @@ void DebugSessionImp::generateEventsForPendingInterrupts() {
}

void DebugSessionImp::resumeAccidentallyStoppedThreads(const std::vector<EuThread::ThreadId> &threadIds) {
std::vector<ze_device_thread_t> threads[4];
std::vector<EuThread::ThreadId> threadIdsPerDevice[4];

for (auto &threadID : threadIds) {
ze_device_thread_t thread = {static_cast<uint32_t>(threadID.slice), static_cast<uint32_t>(threadID.subslice), static_cast<uint32_t>(threadID.eu), static_cast<uint32_t>(threadID.thread)};
uint32_t deviceIndex = static_cast<uint32_t>(threadID.tileIndex);

UNRECOVERABLE_IF((connectedDevice->getNEODevice()->getNumSubDevices() > 0) &&
(deviceIndex >= connectedDevice->getNEODevice()->getNumSubDevices()));

threads[deviceIndex].push_back(thread);
threadIdsPerDevice[deviceIndex].push_back(threadID);
}

Expand Down

0 comments on commit 7271050

Please sign in to comment.