Skip to content
Permalink
6e6203f31a
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 32 lines (23 sloc) 543 Bytes
#!/bin/bash
echo -e "Compiling"
cd p2p_blocking
rm -rf out blocking
mpicxx -o blocking blocking.cpp 2> err_log
rc=$?
if [[ $rc != 0 ]]; then
echo -e "Error : mpicxx returned"
cat err_log
echo "TECHIO> success false"
rm -rf out
exit $rc
fi
echo "Compilation is OK"
rm -rf out
mkdir out
rc=0
echo -e "Execution ... "
rnd1=$(( RANDOM % 100 ))
rnd2=$(( RANDOM % 100 ))
mpirun -mca btl sm,tcp,self -output-filename out/out -np 1 ./blocking $rnd1 : -np 1 ./blocking $rnd2
python check_blocking.py $rnd1 $rnd2
rm -rf out