Skip to content

Commit

Permalink
Merge pull request #1132 from philipmarshall21/bcast_bug_fix
Browse files Browse the repository at this point in the history
src: Bug fix in shmem_internal_copy_self
  • Loading branch information
philipmarshall21 authored Jun 5, 2024
2 parents ef2e76e + c228bb3 commit 6f9f731
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shmem_comm.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ static inline
void shmem_internal_copy_self(void *dest, const void *source, size_t nelems)
{
#ifdef USE_FI_HMEM
long completion = 0;
// "completion" set to 1 to wait for completion of put operation initiated
// by shmem_internal_put_nb, even if "completion" not incremented in call
// to shmem_internal_put_nb.
long completion = 1;
shmem_internal_put_nb(SHMEM_CTX_DEFAULT, dest, source, nelems,
shmem_internal_my_pe, &completion);
shmem_internal_put_wait(SHMEM_CTX_DEFAULT, &completion);
Expand Down

0 comments on commit 6f9f731

Please sign in to comment.