Skip to content

Commit

Permalink
PE relative to teams for signal add set
Browse files Browse the repository at this point in the history
  • Loading branch information
wrrobin committed Oct 7, 2024
1 parent 52ab796 commit 40cfc1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data_c.c4
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ shmemx_ctx_signal_add(shmem_ctx_t ctx, uint64_t *sig_addr, uint64_t signal, int
SHMEM_ERR_CHECK_CTX(ctx);
SHMEM_ERR_CHECK_SYMMETRIC(sig_addr, sizeof(uint64_t));

pe = shmem_internal_team_pe(((shmem_transport_ctx_t *) ctx)->team, pe);
shmem_internal_atomic(ctx, sig_addr, &signal, sizeof(uint64_t),
pe, SHM_INTERNAL_SUM, SHM_INTERNAL_UINT64);
}
Expand All @@ -920,6 +921,7 @@ shmemx_ctx_signal_set(shmem_ctx_t ctx, uint64_t *sig_addr, uint64_t signal, int
SHMEM_ERR_CHECK_CTX(ctx);
SHMEM_ERR_CHECK_SYMMETRIC(sig_addr, sizeof(uint64_t));

pe = shmem_internal_team_pe(((shmem_transport_ctx_t *) ctx)->team, pe);
shmem_internal_atomic_set(ctx, (void *) sig_addr, &signal,
sizeof(uint64_t), pe, SHM_INTERNAL_UINT64);
}
Expand Down

0 comments on commit 40cfc1b

Please sign in to comment.