Skip to content

Commit

Permalink
Merge pull request #1150 from wrrobin/pr/team_pe
Browse files Browse the repository at this point in the history
PE relative to teams for signal add set
  • Loading branch information
wrrobin authored Oct 10, 2024
2 parents 00a4ca6 + 40cfc1b commit 6e505e5
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 6e505e5

Please sign in to comment.