[Swift-user] hack to run mpi jobs on bluegene/p

Allan Espinosa aespinosa at cs.uchicago.edu
Wed Nov 4 20:12:54 CST 2009


I made some hackish wrapper scripts to the app you want to run:

 cat hello_wrapper.sh
#!/bin/bash
echo "hello world"
jobid=`qsub -t 20 -q prod-devel -n 64 --mode vn -o stdout.file \
    /home/espinosa/experiments/mpitest/hello`

getstatus(){
qstat | grep $jobid | awk '{ print $5}'
}

echo $jobid
stat=`getstatus`
while [ $stat != "exiting" ]; do
  stat=`getstatus`
  sleep 1
done


sample workflow:
> cat mpitest.swift
type file;

app (file out) hello() {
    hello;
}

file output<"stdout.file">;

output = hello();


obviously we can't do stderr=@filename(x) and stuff, but we can still
get progress and restartability features of the output files we are
expecting.  we would also need separate commandline processing for
"wrapper" args to real program args.

enjoy! :)
-Allan

-- 
Allan M. Espinosa <http://allan.88-mph.net/blog>
PhD student, Computer Science
University of Chicago <http://people.cs.uchicago.edu/~aespinosa>



More information about the Swift-user mailing list