Módosítások

PRACE User Support

86 bájt törölve, 2013. november 7., 12:45
CPU binding
==== CPU binding ====
Az Generally, the performance of MPI programok teljesítménye általában javítható a processzek application can be optimized with CPU magokhoz kötésévelcore binding. Ilyenkor a párhuzamos In this case, the threads of the paralel program szálait az operációs rendszer nem ütemezi a won't be scheduled by the OS between the CPU magok közöttcores, ezért javulhat a memória lokalizáció and the memory localization can be made better (kevesebb less cache miss). A kötés használata ajánlottIt is advised to use memory binding. Tesztekkel meg kell győződniTests can be run to define, hogy egy adott alkalmazás esetén melyik kötési stratégia adja a legjobb eredménytwhat binding strategy gives the best performance for an application. A következő beállítások az The following settings are valid for OpenMPI környezetre vontakoznakenvironment. A kötésekről részletes információt a Further information on binding can be retrieved with <code>--report-bindings</code> MPI opcióval kaphatunkoption. Az indítási parancsok melett a részletes Along with the running commands, few lines of the detailed binding információ néhány sora information are shown. It is látható. Fontosimportant, hogy az ütemező task binding-ját nem kell használnithat one should not use task_binding of the scheduler===== Binding per CPU core =====In this case, MPI fills CPU cores by the order of threads (rank).
===== Kötés CPU magonként =====
Ebben az esetben az MPI szálak (rank) sorban töltik fel a CPU magokat.
<pre>
Indítási parancsCommand to run: mpirun --bind-to-core --bycore
[cn05:05493] MCW rank 0 bound to socket 0[core 0]: [B . . . . . . . . . . .][. . . . . . . . . . . .]
</pre>
===== Kötés Binding based on CPU foglalat szerint socket =====Ebben az esetben az In this case, MPI szálak váltakozva töltik fel a CPU-katthreads are filling CPUs alternately.
<pre>
Indítási parancsCommand to run: mpirun --bind-to-core --bysocket
[cn05:05659] MCW rank 0 bound to socket 0[core 0]: [B . . . . . . . . . . .][. . . . . . . . . . . .]
</pre>
===== Kötés node-ok szerint Binding by nodes =====Ebben az esetben az In this case, MPI szálak váltakozva töltik fel a node-okatthreads are filling nodes alternately. Lagalább At least 2 node foglalása szükségesnodes needs to be allocated.
<pre>
Indítási parancsCommand to run: mpirun --bind-to-core --bynode
[cn05:05904] MCW rank 0 bound to socket 0[core 0]: [B . . . . . . . . . . .][. . . . . . . . . . . .]

Navigációs menü