#!/bin/sh # # usage: run-mpi processes program [ "program-parameters" ] # # assumes LAM MPI has been "booted", e.g., with "lamboot MPIhosts", # where MPIhosts is a file containing the names of the machines to use # if [ ".$2" = "." ] then echo "Usage: run-mpi processes program" exit fi mpipath=/usr/bin cmd="$mpipath/mpirun -np $1 $2 $3" echo "running command:" echo "$cmd" $cmd