Skip to content

Commit

Permalink
Reorder RMA operations in put-with-signal example
Browse files Browse the repository at this point in the history
Performing some quick cleanup on the put-with-signal example.
  • Loading branch information
naveen-rn committed Jan 4, 2019
1 parent b23e5fa commit 5376cdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example_code/shmem_put_signal_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ int main(void)

uint64_t *data = shmem_calloc(size, sizeof(uint64_t));

if (me != 0) {
if (me == 0) {
shmem_put_signal(data, message, size, &sig_addr, 1, pe);
} else {
shmem_wait_until(&sig_addr, SHMEM_CMP_EQ, 1);
shmem_put_signal(data, data, size, &sig_addr, 1, pe);
} else {
shmem_put_signal(data, message, size, &sig_addr, 1, pe);
}

free(message);
Expand Down

0 comments on commit 5376cdf

Please sign in to comment.