Skip to content

Commit 61b3bdb

Browse files
committed
Fix cuda adapter ref count.
1 parent b9b80e1 commit 61b3bdb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
#include <memory>
2121
#include <mutex>
2222

23-
struct ur_platform_handle_t_;
24-
2523
struct ur_adapter_handle_t_ {
26-
std::atomic<uint32_t> RefCount = 0;
24+
std::atomic<uint32_t> RefCount = 1;
2725
std::mutex Mutex;
2826
struct cuda_tracing_context_t_ *TracingCtx = nullptr;
2927
logger::Logger &logger;

0 commit comments

Comments
 (0)