Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Maps related utilities. More...

Data Structures

struct  VMPI_Map
 Defines a map. More...
 

Enumerations

enum  VMPI_Map_mode { VMPI_MAP_FIXED, VMPI_MAP_RANDOM, VMPI_MAP_ROUND_ROBIN }
 Defines mapping method. More...
 

Functions

static void VMPI_Map_clear (VMPI_Map *map)
 Clears a map. More...
 
int VMPI_Map_partitions (int target_partition, VMPI_Map_mode mode, VMPI_Map *map)
 Map to another partition (can be additive) More...
 

Detailed Description

Maps related utilities.

This utilities are used to set up a mapping between MPI programs (ie. which instrumented program communicates with which analyser program).

As indicated in VMPI_Map_mode enum, three mappings are implemented (with 6 MPI programs) :

Warning
The fixed mapping is only possible when there are the same number of instrumented and analyser programs.
dot_inline_dotgraph_4.png
dot_inline_dotgraph_5.png
dot_inline_dotgraph_6.png

Enumeration Type Documentation

Defines mapping method.

Enumerator
VMPI_MAP_FIXED 

Associates each process to one process.

VMPI_MAP_RANDOM 

Randomly associates processes.

VMPI_MAP_ROUND_ROBIN 

Map processes in a round robin fashion.

Definition at line 275 of file VMPI.h.

Function Documentation

static void VMPI_Map_clear ( VMPI_Map map)
inlinestatic

Clears a map.

should be called before any call to VMPI_Map_partition

Parameters
mapThe map to be cleared

Definition at line 300 of file VMPI.h.

Here is the caller graph for this function:

int VMPI_Map_partitions ( int  target_partition,
VMPI_Map_mode  mode,
VMPI_Map map 
)

Map to another partition (can be additive)

Parameters
target_partitionID of the target partition
modemapping mode as stated in VMPI_Map_mode
mapoutput map
Returns
a VMPI_Return_Status

This functions performs a "real" collective call. It means that not only one program will do that, but every partitions (ie. every programs given to mpirun)

Definition at line 94 of file VMPI.c.

Here is the call graph for this function:

Here is the caller graph for this function: