38 #define VMPI_NG_ARBITRARY_VALUE 0x1234567llu 
   43 #define VMPI_NG_MAXIMUM_TAGS 1000000 
   48 #define MPI_COMM_UNIVERSE ((MPI_Comm)VMPI_NG_ARBITRARY_VALUE) 
   89 #define VMPI_PNAME_LEN 200 
   94 #define VMPI_COMMAND_LEN 1024 
  326                 return MPI_COMM_WORLD;
 
#define VMPI_COMMAND_LEN
Maximum command line name. 
 
int vmpi_enabled
VMPI is enabled. 
 
static int VMPI_Set_trace_trampoline(char *trampoline_partition, int(*vmpi_trampoline)(int argc, char **argv))
 
int numpartitions
Partitions number. 
 
int VMPI_get_new_tag()
Book a tag on VMPI's communicator for this process. 
 
char name[200]
Name of the partition (could be NONE) 
 
static MPI_Comm VMPI_Get_vmpi_comm()
Get VMPI's copy of MPI_COMM_WORLD. 
 
int VMPI_Release()
Releases VMPI. 
 
int mypartition
Current partition id. 
 
static MPI_Comm VMPI_Get_partition_comm()
Returns current partition's communicator. 
 
int current_tag
Counter for local process tags. 
 
Map processes in a round robin fashion. 
 
static VMPI_Partition_desc * VMPI_Get_desc_by_name(char *name)
Find a descriptions by its name. 
 
static void VMPI_Map_clear(VMPI_Map *map)
Clears a map. 
 
int VMPI_Map_partitions(int target_partition, VMPI_Map_mode mode, VMPI_Map *map)
Map to another partition (can be additive) 
 
static int VMPI_Get_partition_count()
Return the number of partitions. 
 
int size
Number of tasks involved in the partition. 
 
void VMPI_Print_map(VMPI_Map *map)
 
Structure holding partitions descriptions. 
 
VMPI_Return_Status
Enum for error handling. 
 
int root_id
Identifier of the root of the partition. 
 
char partition_name[200]
Current partition name. 
 
MPI_Comm partition_comm
The communicator of the partition. 
 
void VMPI_Display_descs()
Display all the partitions descriptions in order. 
 
VMPI_Partition_desc * partition_descs
Partitions descriptions. 
 
static int VMPI_Set_partition_name(char *name)
Used to setup partition name for a given executable. 
 
Randomly associates processes. 
 
MPI_Comm vmpi_communicator
current MPI communicator 
 
static VMPI_Partition_desc * VMPI_Get_desc_by_id(int id)
Find a descriptions by its ID. 
 
void VMPI_Display_desc(VMPI_Partition_desc *desc)
Prints all the fields of a partition descriptions. 
 
int id
Unique identifier of the partition. 
 
int(* vmpi_trampoline)(int argc, char **argv)
 
Failed to allocate some memory. 
 
#define VMPI_PNAME_LEN
Maximum size of a program name. 
 
Associates each process to one process. 
 
static int VMPI_Get_partition_id()
Returns the unique ID of the current partition. 
 
The call cannot pursue retry. 
 
static VMPI_Partition_desc * VMPI_Get_desc()
Returns current partition's descriptions. 
 
struct VMPI_Status __vmpi_status
global VMPI status 
 
static int VMPI_In_trampoline()
 
int VMPI_Enabled()
indicates if VMPI is enabled 
 
int VMPI_Init(int *argc, char ***argv)
Initializes VMPI. 
 
char trampoline_partition_name[200]
 
int count
Number of ranks. 
 
VMPI_Map_mode
Defines mapping method.