[haddock:31110] MCW rank 4 bound to socket 0[core 2[hwt 0-1]]: [../../BB/../../..][../../../../../..]
[haddock:31110] MCW rank 5 bound to socket 1[core 8[hwt 0-1]]: [../../../../../..][../../BB/../../..]
</source>
= Use mpirun with ssh hostfile =
We have the 3 machines '''bax minima elvis'''.<br>
Let's try to make a hostfile
<source lang="bash">
set MPIHARR = (bax minima elvis)
foreach MPIH ($MPIHARR)
ssh $MPIH 'echo $HOST; lscpu | egrep -e "Thread|Core|Socket"; module list'
echo ""
end
</source>
Output
<source lang="text">
bax
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Currently Loaded Modulefiles:
1) openmpi-x86_64
minima
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Currently Loaded Modulefiles:
1) openmpi-x86_64
elvis
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Currently Loaded Modulefiles:
1) openmpi-x86_64
</source>