#!/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