Skip to content

Commit eb7e401

Browse files
committed
unsupported test
1 parent b22212e commit eb7e401

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sycl/test-e2e/Basic/multi_context_wait.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3+
// UNSUPPORTED: gpu-intel-dg2
4+
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/18734
35

46
#include <sycl/detail/core.hpp>
57
#include <sycl/usm.hpp>

unified-runtime/source/adapters/opencl/event.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventRetain(ur_event_handle_t hEvent) {
149149

150150
UR_APIEXPORT ur_result_t UR_APICALL
151151
urEventWait(uint32_t numEvents, const ur_event_handle_t *phEventWaitList) {
152-
if (numEvents == 0 || !phEventWaitList) {
153-
return UR_RESULT_SUCCESS;
154-
}
155-
156152
ur_context_handle_t hContext = phEventWaitList[0]->Context;
157153
std::vector<cl_event> CLEvents;
158154
CLEvents.reserve(numEvents);
@@ -171,8 +167,10 @@ urEventWait(uint32_t numEvents, const ur_event_handle_t *phEventWaitList) {
171167
CLEvents.push_back(phEventWaitList[i]->CLEvent);
172168
hContext = phEventWaitList[i]->Context;
173169
}
174-
cl_int RetErr = clWaitForEvents(CLEvents.size(), CLEvents.data());
175-
CL_RETURN_ON_FAILURE(RetErr);
170+
if (CLEvents.size()) {
171+
cl_int RetErr = clWaitForEvents(CLEvents.size(), CLEvents.data());
172+
CL_RETURN_ON_FAILURE(RetErr);
173+
}
176174
return UR_RESULT_SUCCESS;
177175
}
178176

0 commit comments

Comments
 (0)