SWDEV-252150 - No need to send a Marker if the event is completed in Event::notifyCmdQueue()

Change-Id: Iaa1c550ce0849c12298a24812604345dbf877a5e


[ROCm/clr commit: c5184d61b4]
This commit is contained in:
Jason Tang
2020-10-07 17:20:20 -04:00
committed by Jason Tang
parent 7457150c80
commit 40e6b4c685
+1 -1
View File
@@ -212,7 +212,7 @@ bool Event::awaitCompletion() {
bool Event::notifyCmdQueue() {
HostQueue* queue = command().queue();
if ((NULL != queue) && !notified_.test_and_set()) {
if ((status() > CL_COMPLETE) && (NULL != queue) && !notified_.test_and_set()) {
// Make sure the queue is draining the enqueued commands.
amd::Command* command = new amd::Marker(*queue, false, nullWaitList, this);
if (command == NULL) {