We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025c5bf commit e225e4aCopy full SHA for e225e4a
sycl/source/interop_handle.cpp
@@ -60,7 +60,9 @@ ur_native_handle_t interop_handle::getNativeContext() const {
60
61
ur_native_handle_t
62
interop_handle::getNativeQueue(int32_t &NativeHandleDesc) const {
63
- return MQueue->getNative(NativeHandleDesc);
+ if (MQueue != nullptr)
64
+ return MQueue->getNative(NativeHandleDesc);
65
+ return 0;
66
}
67
68
ur_native_handle_t interop_handle::getNativeGraph() const {
0 commit comments