proc = SIMIX_process_self();
index = atoi((*argv)[1]);
data = smpi_process_remote_data(index);
- SIMIX_process_set_data(proc, data);
+ SIMIX_req_process_set_data(proc, data);
if (*argc > 2) {
free((*argv)[1]);
memmove(&(*argv)[1], &(*argv)[2], sizeof(char *) * (*argc - 2));
return data->argc ? *(data->argc) - 1 : 0;
}
-int smpi_process_getarg(integer* index, char* dst, ftnlen len) {
+int smpi_process_getarg(int* index, char* dst, size_t len) {
smpi_process_data_t data = smpi_process_data();
char* arg;
size_t i;
smpi_process_data_t smpi_process_data(void)
{
- return SIMIX_process_get_data(SIMIX_process_self());
+ return SIMIX_req_process_get_data(SIMIX_process_self());
}
smpi_process_data_t smpi_process_remote_data(int index)
return;
}
}
- request->rdv = SIMIX_rdv_create(NULL);
+ request->rdv = SIMIX_req_rdv_create(NULL);
xbt_fifo_push(data->pending_sent, request);
}
return;
}
}
- request->rdv = SIMIX_rdv_create(NULL);
+ request->rdv = SIMIX_req_rdv_create(NULL);
xbt_fifo_push(data->pending_recv, request);
}
int i;
MPI_Group group;
- SIMIX_network_set_copy_data_callback
- (&SIMIX_network_copy_buffer_callback);
+ SIMIX_comm_set_copy_data_callback
+ (&SIMIX_comm_copy_buffer_callback);
process_count = SIMIX_process_count();
process_data = xbt_new(smpi_process_data_t, process_count);
for (i = 0; i < process_count; i++) {
xbt_cfgelm_int, &default_display_timing, 1, 1, NULL,
NULL);
- int default_display_smpe = 0;
- xbt_cfg_register(&_surf_cfg_set, "smpi/log_events",
- "Boolean indicating whether we should display simulated time spent in MPI calls.",
- xbt_cfgelm_int, &default_display_smpe, 1, 1, NULL,
- NULL);
-
double default_threshold = 1e-6;
xbt_cfg_register(&_surf_cfg_set, "smpi/cpu_threshold",
"Minimal computation time (in seconds) not discarded.",
/* Clean IO before the run */
fflush(stdout);
fflush(stderr);
- SIMIX_init();
#ifdef HAVE_MC
if (_surf_do_model_check)
- MC_modelcheck(1);
+ MC_modelcheck();
else
#endif
- while (SIMIX_solve(NULL, NULL) != -1.0);
+ SIMIX_run();
if (xbt_cfg_get_int(_surf_cfg_set, "smpi/display_timing"))
INFO1("simulation time %g", SIMIX_get_clock());
smpi_global_destroy();
- SIMIX_message_sizes_output("toto.txt");
-
#ifdef HAVE_TRACING
TRACE_smpi_release();
#endif