Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add option to set the threshold where smpi send stops behaving like isend.
[simgrid.git] / src / smpi / smpi_base.c
index 38a9b54..19cce6b 100644 (file)
@@ -313,7 +313,7 @@ void smpi_mpi_start(MPI_Request request)
       XBT_DEBUG("Send request %p is not in the permanent receive mailbox (buf: %p)",request,request->buf);
       mailbox = smpi_process_remote_mailbox(receiver);
     }
-    if (request->size < 64*1024 ) { //(FIXME: this limit should be configurable)
+    if (request->size < sg_cfg_get_int("smpi/send_is_detached_thres") ) { //(FIXME: this limit should be configurable)
       void *oldbuf = NULL;
       request->detached = 1;
       request->refcount++;