Changes

Jump to navigation Jump to search

OpenMPI

681 bytes added, 09:01, 29 May 2015
= Relax In multiprocessor mode =
 
'''How many processors should I start?''' <br>
You should start as many cores as you have. '''But not counting in threads'''. <br>
In this example, you can start 12 (6*2), where Relax will take 1 for receiving results, and 11 for calculations.
<source lang="bash">
lscpu
----
CPU(s): 24
On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 2
</source>
 
You can continue try this, until a good results
<source lang="bash">
mpirun --report-bindings -np 11 echo "hello world"
mpirun --report-bindings -np 12 echo "hello world"
# This is too much
mpirun --report-bindings -np 13 echo "hello world"
</source>
 
Script for ex
<source lang="bash">
tcsh
# Normal
mpirun -np N+1 12 $RELAX --multi='mpi4py'
# In gui
mpirun -np N+1 12 $RELAX --multi='mpi4py' -g
</source>
Trusted, Bureaucrats
1,382

edits

Navigation menu