changeset 6444:14685ad0e681 octave-forge

a script to simplify an MPI run
author mcreel
date Thu, 10 Dec 2009 12:52:07 +0000
parents d00439ff4611
children eac176871c2f
files extra/openmpi_ext/inst/allnodes
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/openmpi_ext/inst/allnodes	Thu Dec 10 12:52:07 2009 +0000
@@ -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 <your_script_name.m> 
+HOSTFILE="/home/user/tmp/bhosts"
+NUMBER_OF_NODES="33"
+mpirun --hostfile $HOSTFILE -np $NUMBER_OF_NODES octave -q --eval $1