PBS variables
Explore how to use PBS environment variables to manage and script batch jobs in High Performance Computing systems. Understand variables like PBS_ARRAYID for job arrays, PBS_JOBID for unique job identification, and PBS_NODEFILE for node allocation. This lesson helps you write effective PBS scripts to control job execution in HPC environments.
We'll cover the following...
We'll cover the following...
PBS sets multiple environment variables at submission time. The following PBS variables are commonly used in command files:
| Variable Name | Description |
|---|---|
PBS_ARRAYID |
Array ID numbers for jobs submitted with the -t flag. For example a job submitted with #PBS -t 1-8 will run eight identical copies of the shell script. |