[mvapich-discuss] How do I patch mvapich2-2.2 to set MV2_ENABLE_AFFINITY default 0

Limin Gu lgu at penguincomputing.com
Fri Sep 30 13:21:29 EDT 2016


Hello all,

I would like to set MV2_ENABLE_AFFINITY default to 0, what's the best way
to do it?

I do not want to configure with --disable-hwloc, or have user have to
specify MV2_ENABLE_AFFINITY=0 on command line.

Will following patch effectively change the default to 0?

diff -Nur src.orig/mpid/ch3/channels/mrail/src/gen2/ibv_env_params.c
src/mpid/ch3/channels/mrail/src/gen2/ibv_env_params.c

--- src.orig/mpid/ch3/channels/mrail/src/gen2/ibv_env_params.c 2016-09-30
10:11:30.288322611 -0700

+++ src/mpid/ch3/channels/mrail/src/gen2/ibv_env_params.c 2016-09-30
10:11:44.909321846 -0700

@@ -1473,7 +1473,7 @@

     MV2_PARAM_GROUP_intranode,

     "MV2_ENABLE_AFFINITY",

     &mv2_enable_affinity,

-    1,

+    0,

     NULL    },

 {

     MV2_HCA_AWARE_PROCESS_MAPPING,





Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20160930/4b4859a8/attachment.html>


More information about the mvapich-discuss mailing list