2 # this script will run an Octave script using MPI with a given hostfile,
3 # using a given number of ranks. Edit it to set the hostfile and number of nodes
4 # then use it as follows: allnodes <your_script_name.m>
5 HOSTFILE="/home/user/tmp/bhosts"
7 mpirun -x LD_PRELOAD=libmpi.so --hostfile $HOSTFILE -np $NUMBER_OF_NODES octave -q --eval $1