Closed naveen-rn closed 3 years ago
The API description also says:
If nelems is 0, the test set is empty and this routine returns 1.
So I think the intent was to return 1 when nelems is 0, and the text in the status
array description should read:
If all elements in status are nonzero or nelems is 0, the test set is empty and this routine returns 1.
Also note that shmem_test_all_vector
has the same issue. Sorry about that, and good catch.
We have been getting by without an errata document, but it might be helpful since issues like one this can't wait until the next release to be clarified. What do you think?
+1
I started an errata page on the wiki: https://github.com/openshmem-org/specification/wiki/OpenSHMEM-1.5-Errata
In the API description of
shmem_test_all
, we have the following statement:And in the return values - we have the following:
So, when the nelems is 0 - should we return 0 or 1?