X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=CreaPhase.git;a=blobdiff_plain;f=octave_packages%2Fopenmpi_ext-1.0.2%2Fallnodes;fp=octave_packages%2Fopenmpi_ext-1.0.2%2Fallnodes;h=6f56f34484296167589ec54305c41f2e1f1f0d35;hp=0000000000000000000000000000000000000000;hb=f5f7a74bd8a4900f0b797da6783be80e11a68d86;hpb=1705066eceaaea976f010f669ce8e972f3734b05 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