gmegan / specification

OpenSHMEM Application Programming Interface
http://www.openshmem.org
1 stars 0 forks source link

Clarify behavior of context based RMA/AMO with invalid PE number #151

Closed gmegan closed 4 years ago

gmegan commented 4 years ago

Question:

What happens if I have a program with 8 PEs. I created team4 = PEs {0,1,2,3}. From this team I create a context, ctx4.

What is the result of this call (where the pe parameter = 5)? shmem_ctx_put64_nbi(ctx4, dest_buff, src_buff, 1, 5 )

Answer:

Under the RMA introduction, we have the following text: The destination PE is specified as an integer representing the PE number. This PE number is relative to the team associated with the communication context being using for the operation. If no context argument is passed to the routine, then the routine operates on the default context, which implies that the PE number is relative to the default team. If the PE number passed to the routine is invalid, being negative or greater than or equal to the size of the OpenSHMEM team, then the behavior is undefined.

Resolution:

Clarify this behavior by placing all or part of this text in the context intro section

gmegan commented 4 years ago

https://github.com/openshmem-org/specification/pull/282