[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:36:50 EDT 2016


Thank Maksym!

I am building mvapich2 for customers, and would like to have default to 0
instead of asking everybody to change their .bashrc.

But will the patch work?

Limin

On Fri, Sep 30, 2016 at 1:26 PM, Maksym Planeta <
mplaneta at os.inf.tu-dresden.de> wrote:

> 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
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20160930/0092ec76/attachment.html>


More information about the mvapich-discuss mailing list