SimGrid  3.18
Versatile Simulation of Distributed Systems
smpi_deployment.cpp File Reference
#include "SmpiHost.hpp"
#include "private.hpp"
#include "simgrid/msg.h"
#include "smpi_comm.hpp"
#include <map>

Classes

class  simgrid::smpi::app::Instance
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::smpi
 
 simgrid::smpi::app
 
 simgrid::s4u
 

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_Commsmpi_deployment_comm_world (const char *instance_id)
 
msg_bar_t smpi_deployment_finalization_barrier (const char *instance_id)
 
void smpi_deployment_cleanup_instances ()
 

Variables

static std::map< std::string, Instancesmpi_instances
 
int process_count
 
int * index_to_process_data
 

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 
)

◆ smpi_deployment_comm_world()

MPI_Comm* smpi_deployment_comm_world ( const char *  instance_id)

◆ smpi_deployment_finalization_barrier()

msg_bar_t smpi_deployment_finalization_barrier ( const char *  instance_id)

◆ smpi_deployment_cleanup_instances()

void smpi_deployment_cleanup_instances ( )

Variable Documentation

◆ smpi_instances

std::map<std::string, Instance> smpi_instances
static

◆ process_count

int process_count

◆ index_to_process_data

int* index_to_process_data