void smpi_mpi_max_func(void *a, void *b, int *length,
MPI_Datatype * datatype);
+void smpi_init()
+{
+ smpi_global = xbt_new(s_smpi_global_t, 1);
+}
+
void smpi_global_init()
{
int i;
XBT_LOG_CONNECT(smpi_util, smpi);
#endif
- smpi_global = xbt_new(s_smpi_global_t, 1);
+ // config vars
+ smpi_global->reference_speed =
+ xbt_cfg_get_double(_surf_cfg_set, "reference_speed");
// mallocators
smpi_global->request_mallocator =
"Boolean indicating whether we should display the timing after simulation.",
xbt_cfgelm_int, &default_display_timing, 1, 1, NULL, NULL);
+ // Allocate minimal things before parsing command line arguments
+ smpi_init();
+
SIMIX_global_init(argc, argv);
return 0;
}
+
+int main(int argc, char** argv)
+{
+ return smpi_run_simulation(&argc, argv);
+}