From 573d676ef048c7960d7f8f2c9294a41931727bae Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Fri, 27 Mar 2020 11:32:46 -0700 Subject: [PATCH] Check event status before notify Change-Id: I68f6bbbf236e49b859be2d5afbe0c8282fe15dd3 [ROCm/hip commit: 178fc17846bfe209428759b33e9976baaa89bda5] --- projects/hip/vdi/hip_event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/hip/vdi/hip_event.cpp b/projects/hip/vdi/hip_event.cpp index 5c9d570ea1..03498c47cf 100644 --- a/projects/hip/vdi/hip_event.cpp +++ b/projects/hip/vdi/hip_event.cpp @@ -25,7 +25,9 @@ namespace hip { bool Event::ready() { - event_->notifyCmdQueue(); + if (event_->status() != CL_COMPLETE) { + event_->notifyCmdQueue(); + } return (event_->status() == CL_COMPLETE); }