int smpi_universe_size = 0;
int* index_to_process_data = nullptr;
extern double smpi_total_benched_time;
-extern xbt_dict_t smpi_comm_keyvals;
xbt_os_timer_t global_timer;
MPI_Comm MPI_COMM_WORLD = MPI_COMM_UNINITIALIZED;
MPI_Errhandler *MPI_ERRORS_RETURN = nullptr;
if (MPI_COMM_WORLD != MPI_COMM_UNINITIALIZED){
MPI_COMM_WORLD->cleanup_smp();
MPI_COMM_WORLD->cleanup_attributes();
- if(smpi_coll_cleanup_callback!=nullptr)
- smpi_coll_cleanup_callback();
+ if(Colls::smpi_coll_cleanup_callback!=nullptr)
+ Colls::smpi_coll_cleanup_callback();
delete MPI_COMM_WORLD;
}
}
xbt_free(index_to_process_data);
- if(smpi_comm_keyvals!=nullptr)
- xbt_dict_free(&smpi_comm_keyvals);
if(smpi_privatize_global_variables)
smpi_destroy_global_memory_segments();
smpi_free_static();
static void smpi_init_options(){
Colls::set_collectives();
- smpi_coll_cleanup_callback=nullptr;
+ Colls::smpi_coll_cleanup_callback=nullptr;
smpi_cpu_threshold = xbt_cfg_get_double("smpi/cpu-threshold");
smpi_host_speed = xbt_cfg_get_double("smpi/host-speed");
smpi_privatize_global_variables = xbt_cfg_get_boolean("smpi/privatize-global-variables");