Skip to content

Commit 5b95881

Browse files
hdelanfabiomestre
authored andcommitted
[SYCL][UR][CUDA] Fix typo in ur_device_handle_t (#10130)
The destructor should be calling `cuDevicePrimaryCtxRelease`
1 parent caed4b7 commit 5b95881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)