nm_comm.h
Go to the documentation of this file.
48extern nm_comm_t nm_comm_create_group(nm_session_t p_session, nm_group_t p_newcomm_group, nm_group_t p_bcast_group);
static nm_group_t nm_comm_group(nm_comm_t comm)
get the group of nodes in the communicator- real group, not a duplicate
nm_comm_t nm_comm_create_group(nm_session_t p_session, nm_group_t p_newcomm_group, nm_group_t p_bcast_group)
create a new communicator, new communicator group is p_newcomm_group, collectively called from group ...
void nm_comm_destroy(nm_comm_t p_comm)
destroy a communicator- no synchronization is done
nm_comm_t nm_comm_create(nm_comm_t comm, nm_group_t group)
create a sub-communicator containing nodes in group- collective on parent communicator
nm_comm_t nm_comm_dup(nm_comm_t comm)
get a duplicate of the given communicator- collective on parent communicator
static nm_gate_t nm_comm_gate_self(nm_comm_t p_comm)
get the gate for self in the given communicator
static nm_gate_t nm_comm_get_gate(nm_comm_t p_comm, int rank)
get the gate for the given rank in communicator numbering
nm_comm_t nm_comm_get_by_session(nm_session_t p_session)
get the communicator from the session; may return NULL if no communicator is attached to this session
static nm_session_t nm_comm_get_session(nm_comm_t p_comm)
get the session attached to the communicator
nm_comm_t nm_comm_self(const char *label)
create a new communicator containing only self, with given label
nm_comm_t nm_comm_world(const char *label)
create a new global communicator with given label
static int nm_comm_get_dest(nm_comm_t p_comm, nm_gate_t p_gate)
get the rank for the given gate, in communicator numbering
This is the common public header for NewMad.
Definition nm_coll_inline.h:19
Definition nm_session_private.h:24