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

Hari Subramoni subramoni.1 at osu.edu
Fri Sep 30 13:48:11 EDT 2016


Hi Limin,

I agree with Maksym's observations.

That patch will not work. I'd recommend the following.

diff --git a/src/mpid/ch3/channels/common/src/affinity/hwloc_bind.c
b/src/mpid/ch3/channels/common/src/affinity/hwl
index cdcec6f..80698c8 100644
--- a/src/mpid/ch3/channels/common/src/affinity/hwloc_bind.c
+++ b/src/mpid/ch3/channels/common/src/affinity/hwloc_bind.c
@@ -51,7 +51,7 @@ int *local_core_ids = NULL;
 int mv2_user_defined_mapping = FALSE;


-unsigned int mv2_enable_affinity = 1;
+unsigned int mv2_enable_affinity = 0;
 unsigned int mv2_enable_leastload = 0;
 unsigned int mv2_hca_aware_process_mapping = 1;

Thx,
Hari.

On Fri, Sep 30, 2016 at 1:36 PM, Limin Gu <lgu at penguincomputing.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/6b0e588e/attachment-0001.html>


More information about the mvapich-discuss mailing list