Skip to content

Commit

Permalink
Merge pull request #12338 from lrbison/smcuda_wmb
Browse files Browse the repository at this point in the history
btl/smcuda: Add atomic_wmb() before sm_fifo_write
  • Loading branch information
wenduwan authored Feb 15, 2024
2 parents 4c972c1 + 71f378d commit a55e9b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opal/mca/btl/smcuda/btl_smcuda_fifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ static void add_pending(struct mca_btl_base_endpoint_t *ep, void *data, bool res
#define MCA_BTL_SMCUDA_FIFO_WRITE(endpoint_peer, my_smp_rank, peer_smp_rank, hdr, resend, \
retry_pending_sends, rc) \
do { \
/* memory barrier: ensure writes to the hdr have completed */ \
opal_atomic_wmb(); \
sm_fifo_t *_fifo = &(mca_btl_smcuda_component.fifo[peer_smp_rank][FIFO_MAP(my_smp_rank)]);\
\
if (retry_pending_sends) { \
Expand Down

0 comments on commit a55e9b2

Please sign in to comment.