Skip to content

Instantly share code, notes, and snippets.

Created October 29, 2015 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/30e5f15373dd116dda41 to your computer and use it in GitHub Desktop.
Save anonymous/30e5f15373dd116dda41 to your computer and use it in GitHub Desktop.
#!/bin/bash
#PBS -N GPUtest
#PBS -q gpu
#PBS -l nodes=2:ppn=4 -n
#PBS -j oe
#PBS -m abe
#PBS -M Parker.deWaal@vai.org
cd $PBS_O_WORKDIR
export PATH=$PATH:/home/parker.dewaal/applications/GPUmpi/bin
list=`cat $PBS_NODEFILE|uniq`;for item in $list; do echo 10.152.220.$((`echo $item |sed -e 's/node//g;s/^0*//g'` +20));done >nodes
grompp_mpi -f prod.mdp -c ../npt/npt.gro -p topol -o prod1
mpirun -f nodes -np 8 mdrun_mpi -deffnm prod1 -pin on -gpu_id 0123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment