Skip to content

Commit

Permalink
[OpenMP] Add critical region lock for NVPTX targets (llvm#110148)
Browse files Browse the repository at this point in the history
Summary:
We define this on AMDGCN but not NVPTX, which leads to some failures
dependong on the target.
  • Loading branch information
jhuber6 authored Sep 26, 2024
1 parent 95eb3d4 commit e8d2057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions offload/DeviceRTL/src/Synchronization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ void setLock(omp_lock_t *Lock) {
} // wait for 0 to be the read value
}

void unsetCriticalLock(omp_lock_t *Lock) { unsetLock(Lock); }

void setCriticalLock(omp_lock_t *Lock) { setLock(Lock); }

#pragma omp end declare variant
///}

Expand Down

0 comments on commit e8d2057

Please sign in to comment.