SWDEV-351980 - Store the correlation ID in the dispatch packet
The profiler can retrieve this correlation ID to attribute waves to
specific dispatch locations.
Change-Id: I700e8a91219d612f6a2028c0dda0c92753f3526a
[ROCm/clr commit: b043b4f5a2]
This commit is contained in:
committed by
Laurent Morichetti
parent
a2df4f8400
commit
6d3939cd49
@@ -3021,6 +3021,12 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes,
|
||||
addSystemScope_ = false;
|
||||
}
|
||||
|
||||
// If profiling is enabled, store the correlation ID in the dispatch packet. The profiler can
|
||||
// retrieve this correlation ID to attribute waves to specific dispatch locations.
|
||||
if (vcmd != nullptr && vcmd->profilingInfo().enabled_) {
|
||||
dispatchPacket.reserved2 = vcmd->profilingInfo().correlation_id_;
|
||||
}
|
||||
|
||||
// Dispatch the packet
|
||||
if (!dispatchAqlPacket(
|
||||
&dispatchPacket, aqlHeaderWithOrder,
|
||||
|
||||
Reference in New Issue
Block a user