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
والد 1936678084
کامیت 712963a97e
+3 -4
مشاهده پرونده
@@ -150,10 +150,9 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record)
amd::ScopedLock lock(lock_); amd::ScopedLock lock(lock_);
if (command == nullptr) { if (command == nullptr) {
bool recordExplicitGpuTs = !queue->properties().test(CL_QUEUE_PROFILING_ENABLE) && static constexpr bool kRecordExplicitGpuTs = true;
!(flags & hipEventDisableTiming); // Always submit a EventMarker.
// Always submit a EventMarker. This would submit a NOP with a signal. command = new hip::EventMarker(*queue, !kMarkerDisableFlush, kRecordExplicitGpuTs);
command = new hip::EventMarker(*queue, !kMarkerDisableFlush, recordExplicitGpuTs);
command->enqueue(); command->enqueue();
} }