Skip to content
Snippets Groups Projects
Commit 4cbcace6 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

COB-49: added inter-node hello-world mpi test

parent 52b74646
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
...@@ -5551,6 +5551,8 @@ SubSystems/Online_Cobalt/validation/cep4/qpid/9315-no_auth.test -text ...@@ -5551,6 +5551,8 @@ SubSystems/Online_Cobalt/validation/cep4/qpid/9315-no_auth.test -text
SubSystems/Online_Cobalt/validation/cep4/slurm/available.test -text SubSystems/Online_Cobalt/validation/cep4/slurm/available.test -text
SubSystems/Online_Cobalt/validation/cep4/slurm/nhc.test -text SubSystems/Online_Cobalt/validation/cep4/slurm/nhc.test -text
SubSystems/Online_Cobalt/validation/cobalt/casacore/meastable.test eol=lf SubSystems/Online_Cobalt/validation/cobalt/casacore/meastable.test eol=lf
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world-between-nodes.test eol=lf
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world.c -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf
......
#!/bin/bash
# this is a similar test as system/mpi/local-hello-world.test
# but now we check the inter-cobalt-node basic mpi init/finalize functionality
source $(dirname $0)/../../validation_utils.sh
check_non_root_privileges
# compile the simple mpi-hello-world
mpicc $(readlink -f -n $(dirname $0))/mpi-hello-world.c -o /tmp/mpi-hello-world || exit 1
# and copy it to all nodes
for i in {201..213} ; do
NODE1=cbm$i.control.lofar
scp -q /tmp/mpi-hello-world $NODE1:/tmp/mpi-hello-world
done
EXIT_CODE=0
# actual test over all node pairs
for i in {201..213} ; do
NODE1=cbm$i.control.lofar
for j in {201..213} ; do
NODE2=cbm$j.control.lofar
RESULT=$(mpirun --tag-output -H $NODE1,$NODE2 /tmp/mpi-hello-world | sort | fgrep 'Hello world' | wc -l | grep '^2$')
if [ $? -eq 0 ] ; then
echo "mpirun hello-world works between $NODE1 and $NODE2"
else
echo "ERROR: mpirun hello-world failed between $NODE1 and $NODE2"
echo "$RESULT"
EXIT_CODE=1
fi
done
done
exit $EXIT_CODE
../../system/mpi/mpi-hello-world.c
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment