Skip to content

Commit 51b4dcc

Browse files
committed
adapter ref count should start at 0 not 1
1 parent 095cc5a commit 51b4dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/cuda/adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ur_legacy_sink : public logger::Sink {
3838
// through UR entry points.
3939
// https://github.com/oneapi-src/unified-runtime/issues/1330
4040
ur_adapter_handle_t_::ur_adapter_handle_t_()
41-
: handle_base(),
41+
: handle_base(), RefCount(0),
4242
logger(logger::get_logger("cuda",
4343
/*default_log_level*/ UR_LOGGER_LEVEL_ERROR)) {
4444
Platform = std::make_unique<ur_platform_handle_t_>();

0 commit comments

Comments
 (0)