Skip to content

Commit 6a5663a

Browse files
committed
Set default value to native handle in getNativeGraph().
1 parent ac16a81 commit 6a5663a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sycl/source/interop_handle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ur_native_handle_t interop_handle::getNativeGraph() const {
7979
}
8080

8181
auto Adapter = MQueue->getAdapter();
82-
ur_native_handle_t Handle;
82+
ur_native_handle_t Handle = 0;
8383
Adapter->call<detail::UrApiKind::urCommandBufferGetNativeHandleExp>(Graph,
8484
&Handle);
8585
return Handle;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ urKernelCreate(ur_program_handle_t hProgram, const char *pKernelName,
7171
auto URKernel = std::make_unique<ur_kernel_handle_t_>(Kernel, hProgram,
7272
hProgram->Context);
7373
*phKernel = URKernel.release();
74-
// todo update here
7574
} catch (std::bad_alloc &) {
7675
return UR_RESULT_ERROR_OUT_OF_RESOURCES;
7776
} catch (...) {

0 commit comments

Comments
 (0)