diff --git a/hipamd/src/hip_event.cpp b/hipamd/src/hip_event.cpp index 94904d576d..09b73913cf 100755 --- a/hipamd/src/hip_event.cpp +++ b/hipamd/src/hip_event.cpp @@ -150,10 +150,9 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record) amd::ScopedLock lock(lock_); if (command == nullptr) { - bool recordExplicitGpuTs = !queue->properties().test(CL_QUEUE_PROFILING_ENABLE) && - !(flags & hipEventDisableTiming); - // Always submit a EventMarker. This would submit a NOP with a signal. - command = new hip::EventMarker(*queue, !kMarkerDisableFlush, recordExplicitGpuTs); + static constexpr bool kRecordExplicitGpuTs = true; + // Always submit a EventMarker. + command = new hip::EventMarker(*queue, !kMarkerDisableFlush, kRecordExplicitGpuTs); command->enqueue(); }