Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a check to ensure that async_small_thres is under send_is_detached..
[simgrid.git] / src / smpi / smpi_global.c
index 1c50396..f793dd5 100644 (file)
@@ -295,6 +295,10 @@ void smpi_global_init(void)
   for (i = 0; i < process_count; i++) {
     smpi_group_set_mapping(group, i, i);
   }
+
+  //check correctness of MPI parameters
+
+  xbt_assert(sg_cfg_get_int("smpi/async_small_thres")<=sg_cfg_get_int("smpi/send_is_detached_thres"));
 }
 
 void smpi_global_destroy(void)