mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: Make debug area resident for subdevices
Resolves: NEO-9455 Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
880aaee16c
commit
ac1ba09911
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -95,6 +95,11 @@ void DebuggerL0::initialize() {
|
||||
NEO::MemoryOperationsHandler *memoryOperationsIface = rootDeviceEnvironment.memoryOperationsInterface.get();
|
||||
if (memoryOperationsIface) {
|
||||
memoryOperationsIface->makeResident(device, ArrayRef<NEO::GraphicsAllocation *>(&moduleDebugArea, 1));
|
||||
auto numSubDevices = device->getNumSubDevices();
|
||||
for (uint32_t i = 0; i < numSubDevices; i++) {
|
||||
auto subDevice = device->getSubDevice(i);
|
||||
memoryOperationsIface->makeResident(subDevice, ArrayRef<NEO::GraphicsAllocation *>(&moduleDebugArea, 1));
|
||||
}
|
||||
}
|
||||
|
||||
const auto &productHelper = device->getProductHelper();
|
||||
|
||||
Reference in New Issue
Block a user