xbt_cfgelm_int, &default_small_messages_threshold, 1, 1, NULL,
NULL);
+ int default_send_is_detached_threshold = 65536;
+ xbt_cfg_register(&_sg_cfg_set, "smpi/send_is_detached_thres",
+ "Threshold of message size where MPI_Send stops behaving like MPI_Isend and becomes MPI_Ssend",
+ xbt_cfgelm_int, &default_send_is_detached_threshold, 1, 1, NULL,
+ NULL);
+
//For smpi/bw_factor and smpi/lat_factor
//Default value have to be "threshold0:value0;threshold1:value1;...;thresholdN:valueN"
//test is if( size >= thresholdN ) return valueN;
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++;