Updated 2019-11-01

python.pbs

#This is an example PBS script to run a parallel python program
#PBS -N pythonTest          # job name
#PBS -l nodes=2:ppn=4       # number of nodes and cores per node required
#PBS -l pmem=2gb            # memory per core
#PBS -l walltime=15:00      # duration of the job (ex: 15 min)
#PBS -q force-6             # queue name (where job is submitted)
#PBS -j oe                  # combine output and error messages into 1 file
#PBS -o pythonTest.out      # output file name
#PBS -m abe                 # event notification, set to email on start, end, or fail
#PBS -M shollister7@gatech.edu      # email to send notifications to

                                    # computations start here
cd ~/test_directory                 # enter directory where python script to be run is stored
echo "Started on `/bin/hostname`"   # prints name of node job is started on
module load anaconda3/2019.10       # loads python environment (anaconda)
python parallelPython.py            # runs parallel python script