SWDEV-422207 - Fix profiling check

Change-Id: Ia6ca28f0b593ea1680732684dd10f40c0043c973


[ROCm/clr commit: 182f6e2e6d]
This commit is contained in:
Saleel Kudchadker
2023-10-25 05:37:47 +00:00
parent d0b8c99103
commit d03b38ba62
@@ -1064,8 +1064,7 @@ inline bool VirtualGPU::dispatchAqlPacket(uint8_t* aqlpacket) {
// If rocprof tracing 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 (activity_prof::IsEnabled(OP_ID_DISPATCH) ||
(roc_device_.info().queueProperties_ & CL_QUEUE_PROFILING_ENABLE)) {
if (activity_prof::IsEnabled(OP_ID_DISPATCH) || profiling_) {
packet->reserved2 = activity_prof::correlation_id;
// Get active signal for current dispatch if profiling is necessary
packet->completion_signal = Barriers().ActiveSignal(kInitSignalValueOne, timestamp_);