Skip to content

Commit e225e4a

Browse files
committed
Disable get_native_queue for graphs
1 parent 025c5bf commit e225e4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/interop_handle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ ur_native_handle_t interop_handle::getNativeContext() const {
6060

6161
ur_native_handle_t
6262
interop_handle::getNativeQueue(int32_t &NativeHandleDesc) const {
63-
return MQueue->getNative(NativeHandleDesc);
63+
if (MQueue != nullptr)
64+
return MQueue->getNative(NativeHandleDesc);
65+
return 0;
6466
}
6567

6668
ur_native_handle_t interop_handle::getNativeGraph() const {

0 commit comments

Comments
 (0)