Skip to content

Commit 3690165

Browse files
committed
[SYCL] piextQueueCreateWithNativeHandle should not be followed by a piQueueRetain
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent c855fd1 commit 3690165

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ pi_result piextQueueCreateWithNativeHandle(pi_native_handle nativeHandle,
389389
(void)ownNativeHandle;
390390
assert(piQueue != nullptr);
391391
*piQueue = reinterpret_cast<pi_queue>(nativeHandle);
392+
clRetainCommandQueue(*piQueue);
392393
return PI_SUCCESS;
393394
}
394395

sycl/source/detail/queue_impl.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ class queue_impl {
129129
sizeof(Device), &Device, nullptr);
130130
MDevice =
131131
DeviceImplPtr(new device_impl(Device, Context->getPlatformImpl()));
132-
133-
// TODO catch an exception and put it to list of asynchronous exceptions
134-
getPlugin().call<PiApiKind::piQueueRetain>(MQueues[0]);
135132
}
136133

137134
~queue_impl() {

0 commit comments

Comments
 (0)