mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Move L0HwHelper ownership to RootDeviceEnvironment 3/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Use RootDeviceEnvironment getHelper<L0CoreHelper> for - getAttentionBitmaskForSingleThreads - getThreadsFromAttentionBitmask
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0e47bcde1d
commit
88ed486f6b
@@ -233,11 +233,11 @@ ze_result_t DebugSessionWindows::handleEuAttentionBitsEvent(DBGUMD_READ_EVENT_EU
|
||||
euAttentionBitsParams.BitMaskSizeInBytes, &euAttentionBitsParams.BitmaskArrayPtr);
|
||||
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
|
||||
auto threadsWithAttention = l0HwHelper.getThreadsFromAttentionBitmask(hwInfo, 0u,
|
||||
reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr),
|
||||
euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
auto threadsWithAttention = l0CoreHelper.getThreadsFromAttentionBitmask(hwInfo, 0u,
|
||||
reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr),
|
||||
euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
|
||||
printBitmask(reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr), euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
|
||||
@@ -548,10 +548,10 @@ ze_result_t DebugSessionWindows::acknowledgeEvent(const zet_debug_event_t *event
|
||||
|
||||
ze_result_t DebugSessionWindows::resumeImp(const std::vector<EuThread::ThreadId> &threads, uint32_t deviceIndex) {
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0CoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
printBitmask(bitmask.get(), bitmaskSize);
|
||||
|
||||
KM_ESCAPE_INFO escapeInfo = {0};
|
||||
|
||||
Reference in New Issue
Block a user