X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/942fe4d025c46b409f84cbf06e7210a39321d050..ebfaf0308c650a96e42eb454f2f81dc0b7346511:/src/smpi/private.h diff --git a/src/smpi/private.h b/src/smpi/private.h index b5f27432ad..f376662be5 100644 --- a/src/smpi/private.h +++ b/src/smpi/private.h @@ -177,8 +177,8 @@ XBT_PRIVATE void smpi_process_simulated_start(void); XBT_PRIVATE double smpi_process_simulated_elapsed(void); XBT_PRIVATE void smpi_process_set_sampling(int s); XBT_PRIVATE int smpi_process_get_sampling(void); -XBT_PRIVATE void smpi_process_set_replaying(int s); -XBT_PRIVATE int smpi_process_get_replaying(void); +XBT_PRIVATE void smpi_process_set_replaying(bool s); +XBT_PRIVATE bool smpi_process_get_replaying(void); XBT_PRIVATE void smpi_deployment_register_process(const char* instance_id, int rank, int index, MPI_Comm**, xbt_bar_t*); XBT_PRIVATE void smpi_deployment_cleanup_instances(void); @@ -193,8 +193,9 @@ XBT_PRIVATE int smpi_enabled(void); XBT_PRIVATE void smpi_global_init(void); XBT_PRIVATE void smpi_global_destroy(void); XBT_PRIVATE double smpi_mpi_wtime(void); +XBT_PRIVATE void smpi_mpi_init(void); -XBT_PRIVATE int is_datatype_valid(MPI_Datatype datatype); +XBT_PRIVATE bool is_datatype_valid(MPI_Datatype datatype); XBT_PRIVATE size_t smpi_datatype_size(MPI_Datatype datatype); XBT_PRIVATE MPI_Aint smpi_datatype_lb(MPI_Datatype datatype); @@ -234,10 +235,10 @@ XBT_PRIVATE int smpi_mpi_pack(void* inbuf, int incount, MPI_Datatype type, void* MPI_Comm comm); XBT_PRIVATE void smpi_empty_status(MPI_Status * status); -XBT_PRIVATE MPI_Op smpi_op_new(MPI_User_function * function, int commute); -XBT_PRIVATE int smpi_op_is_commute(MPI_Op op); +XBT_PRIVATE MPI_Op smpi_op_new(MPI_User_function * function, bool commute); +XBT_PRIVATE bool smpi_op_is_commute(MPI_Op op); XBT_PRIVATE void smpi_op_destroy(MPI_Op op); -XBT_PRIVATE void smpi_op_apply(MPI_Op op, void *invec, void *inoutvec, int *len, MPI_Datatype * datatype); +XBT_PRIVATE void smpi_op_apply(MPI_Op op, const void *invec, void *inoutvec, int *len, MPI_Datatype * datatype); XBT_PRIVATE MPI_Group smpi_group_new(int size); XBT_PRIVATE MPI_Group smpi_group_copy(MPI_Group origin); @@ -262,6 +263,8 @@ XBT_PRIVATE MPI_Comm smpi_comm_split(MPI_Comm comm, int color, int key); XBT_PRIVATE int smpi_comm_dup(MPI_Comm comm, MPI_Comm* newcomm); XBT_PRIVATE void smpi_comm_use(MPI_Comm comm); XBT_PRIVATE void smpi_comm_unuse(MPI_Comm comm); +XBT_PRIVATE void smpi_comm_cleanup_attributes(MPI_Comm comm); +XBT_PRIVATE void smpi_comm_cleanup_smp(MPI_Comm comm); XBT_PRIVATE void smpi_comm_set_leaders_comm(MPI_Comm comm, MPI_Comm leaders); XBT_PRIVATE void smpi_comm_set_intra_comm(MPI_Comm comm, MPI_Comm leaders); XBT_PRIVATE int* smpi_comm_get_non_uniform_map(MPI_Comm comm); @@ -397,7 +400,7 @@ XBT_PRIVATE int smpi_type_keyval_free(int* keyval); // utilities extern XBT_PRIVATE double smpi_cpu_threshold; extern XBT_PRIVATE double smpi_running_power; -extern XBT_PRIVATE int smpi_privatize_global_variables; +extern XBT_PRIVATE bool smpi_privatize_global_variables; extern XBT_PRIVATE char* smpi_start_data_exe; //start of the data+bss segment of the executable extern XBT_PRIVATE int smpi_size_data_exe; //size of the data+bss segment of the executable @@ -697,6 +700,7 @@ XBT_PRIVATE void TRACE_smpi_send(int rank, int src, int dst, int size); XBT_PRIVATE void TRACE_smpi_recv(int rank, int src, int dst); XBT_PRIVATE void TRACE_smpi_init(int rank); XBT_PRIVATE void TRACE_smpi_finalize(int rank); +XBT_PRIVATE char *smpi_container(int rank, char *container, int n); XBT_PRIVATE const char* encode_datatype(MPI_Datatype datatype, int* known);