SWDEV-247372 - Always enable marker_ts_ events

Change-Id: I7579ba1ee228809ce38f6f130fb33f1164587903
This commit is contained in:
Saleel Kudchadker
2021-06-10 12:43:24 -07:00
parent 1936678084
commit 712963a97e
+3 -4
Vedi File
@@ -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();
}