oshmpi icon indicating copy to clipboard operation
oshmpi copied to clipboard

Wait: extend wait_until|test with all|any|some_vector

Open minsii opened this issue 4 years ago • 0 comments

Wait or test elements in an array but with a mask (status) to specify whether the element is excluded from the wait set

size_t shmem_wait_until_some(TYPE *ivars, size_t nelems, size_t *indices, const int *status,
             int cmp, TYPE cmp_value);
shmem_wait_until_any_vector
shmem_wait_until_some_vector
shmem_test_all_vector
shmem_test_any_vector
shmem_test_some_vector

Starting point

  • Section 9.10 Point-To-Point Synchronization Routines in OpenSHMEM spec 1.5
  • Can use MPI_Accumulate to get value of all elements in ivars as it is always a contig buffer.

TODO

  • [ ] Implementation
  • [ ] 1-3 tests in tests/
  • [ ] Ensure correctness with SOS test suite

minsii avatar Mar 03 '21 20:03 minsii