[mvapich-discuss] MPI+OpenMP affinity across multiple sockets

khaled hamidouche hamidouc at cse.ohio-state.edu
Wed Mar 11 12:00:33 EDT 2015


Hi Filippo,

The MV2_CPU_BINDING_LEVEL & MV2_CPU_BINDING_POLICY Policies are for MPI
processes and not for OpenMP Threads.
Thus, for your case, if you want to have 1 MPI and 12 OMP, please refer to
this section

http://mvapich.cse.ohio-state.edu/static/media/mvapich/mvapich2-2.1rc1-userguide.html#x1-800006.17


Globally to have multithreaded support you need to disable affinity,
MV2_ENABLE_AFFINITY=0 and use MV2_CPU_MAPPING=0,1,2,...11  for explicitly
binding the threads to the cores.

Thanks a lot

On Tue, Mar 10, 2015 at 5:21 PM, Filippo SPIGA <fs395 at cam.ac.uk> wrote:

> Dear MVAPICH2 experts,
>
> I know it may sounds not an optimal solution but for the sake of
> benchmarking and performance exploration I need to understand what is the
> correct affinity setting for MVAPICH2. I want to have 1 MPI per node and 12
> OpenMP threads split across two sockets. What is the correct settings for
> MV2_CPU_BINDING_LEVEL & MV2_CPU_BINDING_POLICY? What about
> MV2_CPU_BINDING_LEVEL & MV2_CPU_MAPPING?
>
> Thanks in advance
>
> Cheers,
> Filippo
>
> --
> Mr. Filippo SPIGA, M.Sc. - HPC  Application Specialist
> High Performance Computing Service, University of Cambridge (UK)
> http://www.hpc.cam.ac.uk/ ~ http://filippospiga.info ~ skype:
> filippo.spiga
>
> «Nobody will drive us out of Cantor's paradise.» ~ David Hilbert
>
> *****
> Disclaimer: "Please note this message and any attachments are CONFIDENTIAL
> and may be privileged or otherwise protected from disclosure. The contents
> are not to be disclosed to anyone other than the addressee. Unauthorized
> recipients are requested to preserve this confidentiality and to advise the
> sender immediately of any error in transmission."
>
>
> _______________________________________________
> 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/20150311/f3e120fe/attachment-0001.html>


More information about the mvapich-discuss mailing list