From d0c35f1c401013038a55ce5abc3f7865463c4bd6 Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Tue, 8 Dec 2020 11:18:15 -0800 Subject: [PATCH] Fix event reporting for AMD_DIRECT_DISPATCH Change-Id: I2ff74b9470da976852228c30fefbd4abd8e1952b --- rocclr/platform/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/platform/command.cpp b/rocclr/platform/command.cpp index de51cd9969..0671e0331e 100644 --- a/rocclr/platform/command.cpp +++ b/rocclr/platform/command.cpp @@ -266,7 +266,7 @@ void Command::enqueue() { // when multiple threads submit/flush/update the batch at the same time ScopedLock sl(queue_->lock()); queue_->FormSubmissionBatch(this); - if (type() == CL_COMMAND_MARKER || type() == 0) { + if ((type() == CL_COMMAND_MARKER || type() == 0) && !profilingInfo().marker_ts_) { // Flush the current batch and wait for the results, since it's a marker. // @todo: The condition requires a reevaluation to determine if any marker needs a wait. queue_->vdev()->flush(queue_->GetSubmittionBatch());