Skip to content

Commit

Permalink
src: Bug fix in shmem_internal_copy_self
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmarshall21 committed Jun 5, 2024
1 parent 934f44a commit c228bb3
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 c228bb3

Please sign in to comment.