IMB Script
Jump to navigation
Jump to search
#!/bin/bash
module load openmpi/gcc/64/1.8.2-mlnx-ofed2
cd /home/test/imb/src
for ((i=2; i<=36; i++))
do
if [ "$i" -gt "9" ]
then
nodea="compute0${i}.eth.cluster"
else
nodea="compute00${i}.eth.cluster"
fi
for ((x=2; x<=36; x++))
do
if [ "$x" -gt "9" ]
then
nodeb="compute0${x}.eth.cluster"
else
nodeb="compute00${x}.eth.cluster"
fi
if [ "$nodea" == "$nodeb" ]
then
continue
else
echo ======================================
echo Testing between $nodea and $nodeb
echo =======================================
echo -e "${nodea}\n${nodeb}" > hosts
#mpirun -np 16 -hostfile ./hosts ./IMB-MPI1 -npmin 16 alltoallv
#mpirun -n 2 -hostfile ./hosts ./IMB-MPI1 pingpong
/usr/mpi/gcc/openmpi-1.8.2/bin/mpirun -mca btl ^openib -pernode -n 2 -machinefile hosts /home/test/imb/src/IMB-MPI1 pingpong
fi
done
done