[Openmp-commits] [PATCH] D146849: [OpenMP][libomptarget] Active and blocking HSA wait states
Jan-Patrick Lehr via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 27 01:25:02 PDT 2023
jplehr added inline comments.
================
Comment at: openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp:570
+ hsa_signal_value_t Success = 0;
+ if (MicrosToWait) {
+ Got = hsa_signal_wait_scacquire(Signal, HSA_SIGNAL_CONDITION_NE, Init,
----------------
jdoerfert wrote:
> assert?
I think the intention was that if `MicrosToWait == 0` we fall back to the original behavior, but I just saw that we are now checking in two places.
If this patch is desirable, I would prefer to move the `activeWaitImpl` implementation into the `AMDGPUSignaltTy::wait()`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146849/new/
https://reviews.llvm.org/D146849
More information about the Openmp-commits
mailing list