Skip to content

Commit 130919b

Browse files
authored
[SYCL][UR][CUDA] Fix typo in ur_device_handle_t (#10130)
The destructor should be calling `cuDevicePrimaryCtxRelease`
1 parent 4cd477f commit 130919b

File tree

1 file changed

+1
-1
lines changed
  • sycl/plugins/unified_runtime/ur/adapters/cuda

1 file changed

+1
-1
lines changed

sycl/plugins/unified_runtime/ur/adapters/cuda/device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ur_device_handle_t_ {
2929
: CuDevice(cuDevice), CuContext(cuContext), EvBase(evBase), RefCount{1},
3030
Platform(platform) {}
3131

32-
ur_device_handle_t_() { cuDevicePrimaryCtxRelease(CuDevice); }
32+
~ur_device_handle_t_() { cuDevicePrimaryCtxRelease(CuDevice); }
3333

3434
native_type get() const noexcept { return CuDevice; };
3535

0 commit comments

Comments
 (0)