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

Maksym Planeta mplaneta at os.inf.tu-dresden.de
Fri Sep 30 13:26:53 EDT 2016


Hi,

you can put this variable in a script you use to submit your jobs. Or 
put it in .bashrc. Patching a library for that looks like a huge overkill.

On 09/30/2016 07:21 PM, Limin Gu wrote:
> 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.c2016-09-30
> 10:11:30.288322611 -0700
>
> +++ src/mpid/ch3/channels/mrail/src/gen2/ibv_env_params.c2016-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!
>
>
>
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>

-- 
Regards,
Maksym Planeta

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20160930/77541780/attachment-0001.p7s>


More information about the mvapich-discuss mailing list