From: Augustin Degomme Date: Mon, 23 Sep 2013 08:47:14 +0000 (+0200) Subject: add a check to ensure that async_small_thres is under send_is_detached.. X-Git-Tag: v3_9_90~104^2~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e54bcd49648261e387053d73bf78b4dbb78dd463 add a check to ensure that async_small_thres is under send_is_detached.. We don't want not detached asynchronous sends --- diff --git a/doc/doxygen/options.doc b/doc/doxygen/options.doc index fdeac4cebd..1461798c13 100644 --- a/doc/doxygen/options.doc +++ b/doc/doxygen/options.doc @@ -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 diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index 1c5039687f..f793dd560b 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -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)