Query the scope communicator¶
ss_scope_comm is a function defined in ssscope.c.
Synopsis:
-
herr_t
ss_scope_comm(ss_scope_t *scope, MPI_Comm *comm, int *self, int *ntasks)¶
Formal Arguments:
comm: Optional returned communicator, not duplicated.self: Optional returned calling task’s rank within communicatorntasks: Optional returned size of communicator
Description: Given a scope, return the scope’s communicator without dup’ing it. This is either the scope’s communicator or the communicator of the file to which the scope belongs.
Return Value: Returns non-negative on success, negative on failure. The communicator is returned through the comm argument
when the function is successful.
Parallel Notes: Independent
See Also:
- Scopes: Introduction for current chapter