[llvm] [Offload] Implement event sync in amdgpu (PR #149300)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 01:55:03 PDT 2025
================
@@ -1575,6 +1592,21 @@ struct AMDGPUEventTy {
return Stream.waitEvent(*this);
}
+ Error sync() {
+ std::lock_guard<std::mutex> Lock(Mutex);
----------------
RossBrunton wrote:
Just had a quick look. Libompt allows you to "record" events after they are constructed, which I assume can also happen while you wait/sync on them, so I think the mutex is required.
https://github.com/llvm/llvm-project/pull/149300
More information about the llvm-commits
mailing list