Check event status before notify

Change-Id: I68f6bbbf236e49b859be2d5afbe0c8282fe15dd3


[ROCm/hip commit: 178fc17846]
Этот коммит содержится в:
Saleel Kudchadker
2020-03-27 11:32:46 -07:00
родитель ec09381120
Коммит 573d676ef0
+3 -1
Просмотреть файл
@@ -25,7 +25,9 @@
namespace hip {
bool Event::ready() {
event_->notifyCmdQueue();
if (event_->status() != CL_COMPLETE) {
event_->notifyCmdQueue();
}
return (event_->status() == CL_COMPLETE);
}