P4 to Git Change 1789054 by cpaquot@cpaquot-ocl-lc-lnx on 2019/05/29 14:02:50

SWDEV-190565 - [HIP] Don't use clSetEventWaitList and just add the event to the list in HIP.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_event.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#24 edit
Цей коміт міститься в:
foreman
2019-05-29 14:38:26 -04:00
джерело 3330d5e7a4
коміт 78905ef7e9
+3 -5
Переглянути файл
@@ -84,13 +84,11 @@ hipError_t Event::streamWait(hipStream_t stream, uint flags) {
amd::ScopedLock lock(lock_);
cl_event clEvent = as_cl(event_);
amd::Command::EventWaitList eventWaitList;
cl_int err = amd::clSetEventWaitList(eventWaitList, *hostQueue, 1, &clEvent);
if (err != CL_SUCCESS) {
if (!event_->notifyCmdQueue()) {
return hipErrorUnknown;
}
amd::Command::EventWaitList eventWaitList;
eventWaitList.push_back(event_);
amd::Command* command = new amd::Marker(*hostQueue, true, eventWaitList);
if (command == NULL) {