Skip to content

Instantly share code, notes, and snippets.

@iautom8things
Created October 24, 2012 16:09
Show Gist options
  • Save iautom8things/3947007 to your computer and use it in GitHub Desktop.
Save iautom8things/3947007 to your computer and use it in GitHub Desktop.
#!/bin/sh
#$ -N MCAlgos
#$ -cwd
#$ -j y
#$ -S /bin/sh
unset SGE_ROOT
cat $TMPDIR/machines
echo "about to run!:"
echo "mpirun -np $NSLOTS -machinefile $TMPDIR/machines MCSimm.py -algo $algo -temp $temperature -seed $theseed -delta $thedelta -func $thefunc -nodes $numnodes -id $theid"
echo "..."
mpirun -np $NSLOTS -machinefile $TMPDIR/machines MCSimm.py -algo $algo -temp $temperature -seed $theseed -delta $thedelta -func $thefunc -nodes $numnodes -id $theid
@iautom8things
Copy link
Author

used with: algo=%s temperature=%s theseed=%s thedelta=%s thefunc=%s numnodes=%s theid=%s qsub -V -pe mpich %s montecarlo.qsub

@iautom8things
Copy link
Author

algo=%s temperature=%s theseed=%s thedelta=%s thefunc=%s numnodes=%s theid=%s qsub -V -pe mpich %s montecarlo.qsub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment