oshmpi
oshmpi copied to clipboard
Wait: extend wait_until|test with all|any|some_vector
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_Accumulateto get value of all elements inivarsas it is always a contig buffer.
TODO
- [ ] Implementation
- [ ] 1-3 tests in tests/
- [ ] Ensure correctness with SOS test suite