Last active
April 5, 2023 11:57
-
-
Save janxkoci/0b2b6467f15c907a7d07c78cbd0f2ffe to your computer and use it in GitHub Desktop.
convenience scripts for Torque PBS submission system (keep them in $HOME/bin)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Launch interactive session for testing purposes (Torque PBS & PBS Pro / OpenPBS) | |
| # set CPUs and RAM (defaults = 8, 16gb) | |
| cores=${1:-8} | |
| ram=${2:-16} | |
| ## Torque PBS | |
| qsub -I -N ijob -d . -v PATH -l nodes=1:ppn=${cores},mem=${ram}gb,walltime=48:00:00 | |
| ## PBS Pro / OpenPBS | |
| #qsub -I -N ijob -l select=1:ncpus=${cores}:mem=${ram}gb,walltime=24:00:00 | |
| #cd $PBS_O_WORKDIR || exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Quickly submit a script (Torque PBS) | |
| script=$1 | |
| # set CPUs and RAM (defaults = 20, 64gb) | |
| cores=${2:-20} | |
| ram=${3:-64} | |
| ## Torque PBS | |
| qsub -N $script -d . -v PATH -l nodes=1:ppn=${cores},mem=${ram}gb,walltime=300:00:00 $script | |
| ## PBS Pro / OpenPBS | |
| #qsub -N $script -l select=1:ncpus=${cores}:mem=${ram}gb,walltime=48:00:00 $script | |
| #cd $PBS_O_WORKDIR || exit |
Author
Author
Update
- more sensible defaults
- added optional parameter to
ijob.shto set number of CPU cores (defaults to 8)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qsub docs
The documentation for the qsub command of Torque PBS can be found here: html / pdf.
Another documentation I've found (as a backup, in case the other one goes down) is here.