Fix a RCCL initialization to avoid a deadlock (#136)

Also fixes: 

- crash while finalizing rocprof-sys-causal

[ROCm/rocprofiler-systems commit: 26bb604215]
이 커밋은 다음에 포함됨:
ajanicijamd 작성하고 GitHub가 2025-03-19 14:48:04 -04:00를 커밋함
1 부모 516c3b11f8
커밋 df729548d0
7 파일이 변경됨
+77 -19

검색과 일치하는 파일 없음

-1
파일 보기
@@ -855,7 +855,6 @@ sample_selection(size_t _nitr, size_t _wait_ns)
while(eligible_pc_idx.load(std::memory_order_relaxed) == 0)
{
if(get_state() >= State::Finalized) return selected_entry{};
std::this_thread::yield();
std::this_thread::sleep_for(std::chrono::nanoseconds{ _wait_ns });
}