Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a check to ensure that async_small_thres is under send_is_detached..
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 23 Sep 2013 08:47:14 +0000 (10:47 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 23 Sep 2013 10:45:21 +0000 (12:45 +0200)
We don't want not detached asynchronous sends

doc/doxygen/options.doc
src/smpi/smpi_global.c

index fdeac4c..1461798 100644 (file)
@@ -253,6 +253,10 @@ manually set for MSG mailboxes, by setting the receiving mode of the mailbox
 with a call to \ref MSG_mailbox_set_async . For MSG, all messages sent to this 
 mailbox will have this behavior, so consider using two mailboxes if needed. 
 
+This value needs to be smaller than or equals to the threshold set at 
+\ref options_model_smpi_detached , because asynchronous messages are 
+meant to be detached as well.
+
 \subsubsection options_pls Configuring packet-level pseudo-models
 
 When using the packet-level pseudo-models, several specific
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)