This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
quick:pbspro [2015/06/19 10:28] ischeepers [Example 3 : Quantum Espresso job] |
quick:pbspro [2025/09/22 17:47] (current) kevin [Example 4 : empty job] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Job submission using PBSPro ====== | ====== Job submission using PBSPro ====== | ||
| - | As of January 2014, CHPC has a new scheduler - PBSPro. | + | The CHPC system uses the PBSPro |
| - | Main user documentation can be found at http://resources.altair.com/ | + | Main user documentation can be found at [[https://www.altair.com/ |
| But here is a summary of how to submit jobs at CHPC. | But here is a summary of how to submit jobs at CHPC. | ||
| Line 26: | Line 26: | ||
| A script can include just about anything which you could do during a terminal session such as set environment variables, change directories, | A script can include just about anything which you could do during a terminal session such as set environment variables, change directories, | ||
| - | '' | + | > Job script files can be named to anything allowed for a regular file, but it is strongly recommended that you use '' |
| Line 141: | Line 141: | ||
| #< | #< | ||
| #< | #< | ||
| - | #< | + | #< |
| #< | #< | ||
| Line 148: | Line 148: | ||
| </ | </ | ||
| - | //Note that the M9000 sparc queue is called ' | + | |
| ===== Example 5 : MPI example ===== | ===== Example 5 : MPI example ===== | ||
| Line 160: | Line 160: | ||
| ... | ... | ||
| </ | </ | ||
| - | |||
| - | ===== Example 6 : job array ===== | ||
| - | See [[howto: | ||
| - | <file bash simple_job_array.pbs> | ||
| - | #! /bin/bash | ||
| - | #PBS -l select=1: | ||
| - | #PBS -l walltime=00: | ||
| - | #PBS -o / | ||
| - | #PBS -e / | ||
| - | #PBS -M youremail@address.com | ||
| - | #PBS -m abe | ||
| - | #PBS -N J_example | ||
| - | #PBS -J 1-24 | ||
| - | |||
| - | |||
| - | # Make sure we're in the right working directory | ||
| - | cd / | ||
| - | |||
| - | #sleep a random number of seconds (<10) | ||
| - | sleep $[ ( $RANDOM % 10 ) + 1 ]s | ||
| - | |||
| - | #see what happens when we write to a file... | ||
| - | echo " | ||
| - | echo " | ||
| - | echo " | ||
| - | </ | ||
| - | |||
| - | Thing to note: the stdout and stderr outputs do not all get joined together as they might with an mpi job. | ||
| - | |||
| ===== Further examples ===== | ===== Further examples ===== | ||
| * Various [[howto: | * Various [[howto: | ||
| * This [[howto: | * This [[howto: | ||