gmegan / specification

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

Change config param num_threads to num_contexts #55

Closed gmegan closed 5 years ago

gmegan commented 5 years ago

In working on examples and talking over the meaning of the num_threads parameter, it seems that what we really mean is not threads but contexts.

For example, when we create a team and specify that we will need up to 4 contexts with num_threads=4, the following cases hold:

So, this parameter does not exactly describe the functionality and may lead to users thinking that the previous cases are not true.

The number of threads in use may be something that the implementation can optimize for, but this is orthogonal to the number of contexts a team can create.