NewMadeleine

Documentation

nm_examples_helper.h File Reference
Include dependency graph for nm_examples_helper.h:

Go to the source code of this file.

Macros

#define check_rc(RC)
 

Enumerations

enum  nm_example_topo_e { NM_EXAMPLES_TOPO_RING , NM_EXAMPLES_TOPO_PAIRS , NM_EXAMPLES_TOPO_STAR }
 

Functions

static void nm_examples_init_topo (int *argc, char *argv[], enum nm_example_topo_e topo)
 
static void nm_examples_barrier (nm_tag_t tag)
 
static void nm_examples_init (int *argc, char *argv[])
 
static void nm_examples_exit (void)
 
static nm_len_t _next (nm_len_t len, double multiplier, nm_len_t increment)
 
static void fill_buffer (char *buffer, nm_len_t len) __attribute__((unused))
 
static void clear_buffer (char *buffer, nm_len_t len) __attribute__((unused))
 
static void control_buffer (const char *buffer, nm_len_t len) __attribute__((unused))
 
static char buffer_content (nm_len_t offset)
 
static void compute (unsigned usec)
 

Variables

static int is_server = -1
 
static nm_session_t p_session = NULL
 
static nm_gate_t p_gate = NULL
 
static nm_comm_t p_comm = NULL
 
static const nm_tag_t data_tag = 0x01
 
static const nm_tag_t sync_tag = 0x02
 

Macro Definition Documentation

◆ check_rc

#define check_rc (   RC)
Value:
if((RC) != NM_ESUCCESS) \
{ \
fprintf(stderr, "Error %d (%s) in %s line %d\n", \
(RC), nm_strerror(RC), __FILE__, __LINE__); \
abort(); \
}
const char * nm_strerror(int rc)
@ NM_ESUCCESS
successful operation
Definition: nm_errno.h:34

Definition at line 159 of file nm_examples_helper.h.

Enumeration Type Documentation

◆ nm_example_topo_e

Enumerator
NM_EXAMPLES_TOPO_RING 
NM_EXAMPLES_TOPO_PAIRS 
NM_EXAMPLES_TOPO_STAR 

Definition at line 32 of file nm_examples_helper.h.

Function Documentation

◆ _next()

static nm_len_t _next ( nm_len_t  len,
double  multiplier,
nm_len_t  increment 
)
inlinestatic

Definition at line 98 of file nm_examples_helper.h.

References len.

◆ buffer_content()

static char buffer_content ( nm_len_t  offset)
inlinestatic

Definition at line 111 of file nm_examples_helper.h.

Referenced by control_buffer(), and fill_buffer().

Here is the caller graph for this function:

◆ clear_buffer()

static void clear_buffer ( char *  buffer,
nm_len_t  len 
)
static

Definition at line 125 of file nm_examples_helper.h.

References len.

◆ compute()

static void compute ( unsigned  usec)
inlinestatic

Definition at line 145 of file nm_examples_helper.h.

◆ control_buffer()

static void control_buffer ( const char *  buffer,
nm_len_t  len 
)
static

Definition at line 130 of file nm_examples_helper.h.

References buffer_content(), and len.

Here is the call graph for this function:

◆ fill_buffer()

static void fill_buffer ( char *  buffer,
nm_len_t  len 
)
static

Definition at line 116 of file nm_examples_helper.h.

References buffer_content(), and len.

Here is the call graph for this function:

◆ nm_examples_barrier()

static void nm_examples_barrier ( nm_tag_t  tag)
inlinestatic

Definition at line 74 of file nm_examples_helper.h.

References nm_coll_barrier(), p_comm, and tag.

Referenced by nm_examples_exit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nm_examples_exit()

static void nm_examples_exit ( void  )
inlinestatic

◆ nm_examples_init()

static void nm_examples_init ( int *  argc,
char *  argv[] 
)
inlinestatic
Examples
nm_onesided_queues.c, nm_onesided_simple.c, nm_pack_headers.c, and nm_sr_peek.c.

Definition at line 79 of file nm_examples_helper.h.

References nm_examples_init_topo(), and NM_EXAMPLES_TOPO_RING.

Here is the call graph for this function:

◆ nm_examples_init_topo()

static void nm_examples_init_topo ( int *  argc,
char *  argv[],
enum nm_example_topo_e  topo 
)
static
Examples
nm_mcast_basic.c, and nm_sr_hello.c.

Definition at line 39 of file nm_examples_helper.h.

References is_server, nm_comm_world(), NM_EXAMPLES_TOPO_PAIRS, NM_EXAMPLES_TOPO_RING, NM_EXAMPLES_TOPO_STAR, nm_launcher_get_gate(), nm_launcher_get_rank(), nm_launcher_get_size(), nm_launcher_init(), nm_session_open(), p_comm, p_gate, p_session, and size.

Referenced by nm_examples_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ data_tag

const nm_tag_t data_tag = 0x01
static
Examples
nm_bench_req_monitor.c.

Definition at line 29 of file nm_examples_helper.h.

◆ is_server

int is_server = -1
static

◆ p_comm

nm_comm_t p_comm = NULL
static

◆ p_gate

◆ p_session

◆ sync_tag

const nm_tag_t sync_tag = 0x02
static

Definition at line 30 of file nm_examples_helper.h.