nm_examples_helper.h
Go to the documentation of this file.
37 };
113static inline void fill_buffer_seed(char*buffer, nm_len_t len, int seed) __attribute__((unused));
135static inline void control_buffer_seed(const char*buffer, nm_len_t len, int seed) __attribute__((unused));
void nm_coll_barrier(nm_comm_t comm, nm_tag_t tag)
void nm_comm_destroy(nm_comm_t p_comm)
destroy a communicator- no synchronization is done
nm_comm_t nm_comm_world(const char *label)
create a new global communicator with given label
void nm_group_add_node(nm_group_t p_group, nm_gate_t p_gate)
int nm_launcher_get_gate(int dest, nm_gate_t *gate)
Returns the gate for the process dest.
static int nm_launcher_init(int *argc, char **argv)
Initializes nmad.
Definition nm_launcher_interface.h:74
int nm_session_open(nm_session_t *pp_session, const char *label)
Open a new session, assuming processes are already connected.
static nm_gate_t nm_comm_get_gate(nm_comm_t p_comm, int rank)
Definition nm_coll_inline.h:46
static struct nm_group_s * nm_examples_group_shuffled(int n)
Definition nm_examples_helper.h:217
static void control_buffer(const char *buffer, nm_len_t len) __attribute__((unused))
Definition nm_examples_helper.h:152
static struct nm_group_s * nm_examples_group_inorder(int n)
generate a group with ranks in order
Definition nm_examples_helper.h:194
static void fill_buffer(char *buffer, nm_len_t len) __attribute__((unused))
Definition nm_examples_helper.h:124
static struct nm_group_s * nm_examples_group_reverse(int n)
generate a group with ranks in reverse order
Definition nm_examples_helper.h:206
static void clear_buffer(char *buffer, nm_len_t len) __attribute__((unused))
Definition nm_examples_helper.h:130
static void nm_examples_init(int *argc, char *argv[])
Definition nm_examples_helper.h:79
static char buffer_content(nm_len_t offset, int seed)
Definition nm_examples_helper.h:108
static void fill_buffer_seed(char *buffer, nm_len_t len, int seed) __attribute__((unused))
Definition nm_examples_helper.h:114
static void fisher_yates_shuffle(int *p_array, size_t n)
shuffle an array of ints
Definition nm_examples_helper.h:180
static void nm_examples_init_topo(int *argc, char *argv[], enum nm_example_topo_e topo)
Definition nm_examples_helper.h:39
static nm_len_t _next(nm_len_t len, double multiplier, nm_len_t increment)
Definition nm_examples_helper.h:98
static void control_buffer_seed(const char *buffer, nm_len_t len, int seed) __attribute__((unused))
Definition nm_examples_helper.h:136
nm_len_t size
size of the onsided data (not incuding target-side completion)
Definition nm_onesided_private.h:1
This is the common public header for NewMad.
Definition nm_coll_inline.h:19
Definition nm_session_private.h:24