SimGrid  3.14.159
Versatile Simulation of Distributed Systems
smpi_deployment.cpp File Reference
#include "private.h"
#include "simgrid/msg.h"
#include "xbt/dict.h"
#include "xbt/log.h"
#include "xbt/sysdep.h"

Classes

struct  s_smpi_mpi_instance
 

Typedefs

typedef struct s_smpi_mpi_instance s_smpi_mpi_instance_t
 

Functions

void SMPI_app_instance_register (const char *name, xbt_main_func_t code, int num_processes)
 Registers a running instance of a MPI program. More...
 
void smpi_deployment_register_process (const char *instance_id, int rank, int index, MPI_Comm **comm, msg_bar_t *bar)
 
void smpi_deployment_cleanup_instances ()
 

Variables

static xbt_dict_t smpi_instances = nullptr
 
int process_count
 
int * index_to_process_data
 

Typedef Documentation

◆ s_smpi_mpi_instance_t

Function Documentation

◆ SMPI_app_instance_register()

void SMPI_app_instance_register ( const char *  name,
xbt_main_func_t  code,
int  num_processes 
)

Registers a running instance of a MPI program.

FIXME : remove MSG from the loop at some point.

Parameters
namethe reference name of the function.
codethe main mpi function (must have a int ..(int argc, char *argv[])) prototype
num_processesthe size of the instance we want to deploy

◆ smpi_deployment_register_process()

void smpi_deployment_register_process ( const char *  instance_id,
int  rank,
int  index,
MPI_Comm **  comm,
msg_bar_t bar 
)

◆ smpi_deployment_cleanup_instances()

void smpi_deployment_cleanup_instances ( )

Variable Documentation

◆ smpi_instances

xbt_dict_t smpi_instances = nullptr
static

◆ process_count

int process_count

◆ index_to_process_data

int* index_to_process_data