mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: Debug flag to print TSP usage
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0bc5eead84
commit
b004a27e4e
@@ -125,6 +125,11 @@ inline void HardwareInterface<GfxFamily>::programWalker(
|
||||
auto devices = queueCsr.getOsContext().getDeviceBitfield();
|
||||
auto partitionWalker = ImplicitScalingHelper::isImplicitScalingEnabled(devices, true);
|
||||
|
||||
if (walkerArgs.currentTimestampPacketNodes && DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
auto gpuVa = walkerArgs.currentTimestampPacketNodes->peekNodes()[walkerArgs.currentDispatchIndex]->getGpuAddress();
|
||||
printf("\nPID:%u, TSP used for Walker: 0x%" PRIu64 ", cmdBuffer pos: 0x%" PRIu64, SysCalls::getProcessId(), gpuVa, commandStream.getCurrentGpuAddressPosition());
|
||||
}
|
||||
|
||||
if (partitionWalker) {
|
||||
const uint64_t workPartitionAllocationGpuVa = commandQueue.getDevice().getDefaultEngine().commandStreamReceiver->getWorkPartitionAllocationGpuAddress();
|
||||
uint32_t partitionCount = 0u;
|
||||
|
||||
Reference in New Issue
Block a user