PadicoTM

Documentation

« back to PM2 home.
bench_MPI.c File Reference
#include "bench_common.h"
#include <Padico/Module.h>
#include <mpi.h>
Include dependency graph for bench_MPI.c:

Go to the source code of this file.

Functions

int bench_mpi_run (int argc, char **argv)
 
static void padico_module_create_initializer__bench_MPI (void)
 
void mpi_server (char *buffer, size_t lenbuf)
 
void mpi_client (char *buffer, size_t lenbuf)
 

Variables

struct puk_mod_binary_s padico_mod_binary__bench_MPI = { .name = "bench_MPI", .funcs = &padico_mod_funcs__bench_MPI , .mod = NULL, .profile = { .total_mem = 0, .max_mem = 0, .num_malloc = 0, .num_free = 0 } , .auto_deps = & puk_mod_dep_0 , .n_deps = sizeof((char*[]){ 0, }) / sizeof(char*), .deps = { NULL, } }
 
static const struct puk_mod_funcs_s padico_mod_funcs__bench_MPI = { .init = ( NULL ), .run = ( bench_mpi_run ), .finalize = ( NULL ) }
 
static int peer = -1
 
static const int tag = 1
 
static const struct bench_desc_s mpi_bench
 

Function Documentation

◆ bench_mpi_run()

int bench_mpi_run ( int  argc,
char **  argv 
)

Definition at line 37 of file bench_MPI.c.

References init_done, mpi_bench, peer, self, size, and the_bench().

◆ mpi_client()

void mpi_client ( char *  buffer,
size_t  lenbuf 
)

Definition at line 23 of file bench_MPI.c.

References buffer, peer, and tag.

◆ mpi_server()

void mpi_server ( char *  buffer,
size_t  lenbuf 
)

Definition at line 16 of file bench_MPI.c.

References buffer, peer, and tag.

◆ padico_module_create_initializer__bench_MPI()

static void padico_module_create_initializer__bench_MPI ( void  )
static

Definition at line 10 of file bench_MPI.c.

Variable Documentation

◆ mpi_bench

const struct bench_desc_s mpi_bench
static
Initial value:
=
{
"MPI",
}
void mpi_client(char *buffer, size_t lenbuf)
Definition bench_MPI.c:23
void mpi_server(char *buffer, size_t lenbuf)
Definition bench_MPI.c:16

Definition at line 30 of file bench_MPI.c.

Referenced by bench_mpi_run().

◆ padico_mod_binary__bench_MPI

struct puk_mod_binary_s padico_mod_binary__bench_MPI = { .name = "bench_MPI", .funcs = &padico_mod_funcs__bench_MPI , .mod = NULL, .profile = { .total_mem = 0, .max_mem = 0, .num_malloc = 0, .num_free = 0 } , .auto_deps = & puk_mod_dep_0 , .n_deps = sizeof((char*[]){ 0, }) / sizeof(char*), .deps = { NULL, } }

Definition at line 10 of file bench_MPI.c.

◆ padico_mod_funcs__bench_MPI

const struct puk_mod_funcs_s padico_mod_funcs__bench_MPI = { .init = ( NULL ), .run = ( bench_mpi_run ), .finalize = ( NULL ) }
static

Definition at line 10 of file bench_MPI.c.

◆ peer

int peer = -1
static

Definition at line 12 of file bench_MPI.c.

Referenced by bench_mpi_run(), mpi_client(), and mpi_server().

◆ tag