Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar with some cleanups
[simgrid.git] / src / smpi / smpi_global.cpp
index e67ecca..ad0791e 100644 (file)
@@ -99,7 +99,7 @@ void smpi_process_init(int *argc, char ***argv)
 
   if (argc != nullptr && argv != nullptr) {
     smx_process_t proc = SIMIX_process_self();
-    proc->context->set_cleanup(MSG_process_cleanup_from_SIMIX);
+    proc->context->set_cleanup(&MSG_process_cleanup_from_SIMIX);
     char* instance_id = (*argv)[1];
     int rank = xbt_str_parse_int((*argv)[2], "Invalid rank: %s");
     int index = smpi_process_index_of_smx_process(proc);