[mvapich-discuss] [PATCH] MV2_NUM_SA_QUERY_RETRIES

Alexander Melnikov alex.i.melnikov at gmail.com
Tue Aug 13 04:45:06 EDT 2019


This patch fixes the processing of the variable MV2_NUM_SA_QUERY_RETRIES.

diff -ru
mvapich2-2.3.2-orig/src/mpid/ch3/channels/mrail/src/gen2/ibv_param.c
mvapich2-2.3.2/src/mpid/ch3/channels/mrail/src/gen2/ibv_param.c
--- mvapich2-2.3.2-orig/src/mpid/ch3/channels/mrail/src/gen2/ibv_param.c
2019-08-09 04:26:25.000000000 +0500
+++ mvapich2-2.3.2/src/mpid/ch3/channels/mrail/src/gen2/ibv_param.c
2019-08-13 13:25:26.873671663 +0500
@@ -1561,7 +1561,7 @@
 #endif /* ENABLE_QOS_SUPPORT */

     if ((value = getenv("MV2_NUM_SA_QUERY_RETRIES")) != NULL) {
-        rdma_num_sa_query_retries = !!atoi(value);
+        rdma_num_sa_query_retries = atoi(value);
         if (rdma_num_sa_query_retries < RDMA_DEFAULT_NUM_SA_QUERY_RETRIES)
{
             rdma_num_sa_query_retries = RDMA_DEFAULT_NUM_SA_QUERY_RETRIES;
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20190813/10f4ab52/attachment.html>


More information about the mvapich-discuss mailing list