X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=octave_packages%2Fopenmpi_ext-1.0.2%2Fallnodes;fp=octave_packages%2Fopenmpi_ext-1.0.2%2Fallnodes;h=6f56f34484296167589ec54305c41f2e1f1f0d35;hb=c880e8788dfc484bf23ce13fa2787f2c6bca4863;hp=0000000000000000000000000000000000000000;hpb=1705066eceaaea976f010f669ce8e972f3734b05;p=CreaPhase.git diff --git a/octave_packages/openmpi_ext-1.0.2/allnodes b/octave_packages/openmpi_ext-1.0.2/allnodes new file mode 100644 index 0000000..6f56f34 --- /dev/null +++ b/octave_packages/openmpi_ext-1.0.2/allnodes @@ -0,0 +1,7 @@ +#!/bin/bash +# this script will run an Octave script using MPI with a given hostfile, +# using a given number of ranks. Edit it to set the hostfile and number of nodes +# then use it as follows: allnodes +HOSTFILE="/home/user/tmp/bhosts" +NUMBER_OF_NODES="33" +mpirun -x LD_PRELOAD=libmpi.so --hostfile $HOSTFILE -np $NUMBER_OF_NODES octave -q --eval $1