Skip to content

Commit ae3c397

Browse files
[SYCL] Ignore unused input in the OpenCL plugin function to create an event from native handle (#4289)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 6cf33ae commit ae3c397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ pi_result piextEventCreateWithNativeHandle(pi_native_handle nativeHandle,
720720
bool ownNativeHandle,
721721
pi_event *piEvent) {
722722
(void)context;
723+
// TODO: ignore this, but eventually want to return error as unsupported
723724
(void)ownNativeHandle;
724725

725726
assert(piEvent != nullptr);
726727
assert(nativeHandle);
727728
assert(context);
728-
assert(ownNativeHandle == false);
729729

730730
*piEvent = reinterpret_cast<pi_event>(nativeHandle);
731731
return PI_SUCCESS;

0 commit comments

Comments
 (0)