(Click to open topic with navigation)
When a batch job is started, a number of variables are introduced into the job's environment that can be used by the batch script in making decisions, creating output files, and so forth. These variables are listed in the following table:
Variable | Description |
---|---|
PBS_ARRAYID | Zero-based value of job array index for this job (in version 2.2.0 and later) |
PBS_ENVIRONMENT | Set to PBS_BATCH to indicate the job is a batch job, or to PBS_INTERACTIVE to indicate the job is a PBS interactive job (see -I option). |
PBS_GPUFILE |
Line-delimited list of GPUs allocated to the job located in TORQUE_HOME/aux/jobidgpu. Each line follows the following format: <host>-gpu<number> For example, myhost-gpu1. |
PBS_JOBCOOKIE | Job cookie |
PBS_JOBID | Unique pbs job id |
PBS_JOBNAME | User specified jobname |
PBS_MOMPORT | Active port for MOM daemon |
PBS_NODEFILE | File containing line delimited list of nodes allocated to the job |
PBS_NODENUM | Node offset number |
PBS_NP | Number of execution slots (cores) for the job |
PBS_NUM_NODES | Number of nodes allocated to the job |
PBS_NUM_PPN | Number of procs per node allocated to the job |
PBS_O_HOME | Home directory of submitting user |
PBS_O_HOST | Host on which job script is currently running |
PBS_O_LANG | Language variable for job |
PBS_O_LOGNAME | Name of submitting user |
PBS_O_PATH | Path variable used to locate executables within job script |
PBS_O_SHELL | Script shell |
PBS_O_WORKDIR | Job's submission directory |
PBS_QUEUE | Job queue |
PBS_TASKNUM | Number of tasks requested |
Related Topics