| United States-English |
|
|
|
![]() |
HP XC System Software: User's Guide > Chapter 5 Submitting JobsRunning Preexecution Programs |
|
A preexecution program is a program that performs needed setup tasks that an application needs. It may create directories, input files, and so on. Though LSF-HPC daemons only run on a node with resource manager role, batch jobs can run on any compute node that satisfies the scheduling and allocation requirements. Where preexecution commands run depends on the type of job:
Before starting a preexecution program, LSF-HPC sets the SLURM_JOBID environment variable. To enable srun to launch preexecution on the first allocated node and other allocated nodes, your preexecution program should pick up the SLURM_JOBID environment variable. The SLURM_JOBID has the information LSF-HPC needs to run the job on the nodes required by your preexecution program. The following items provide the information you need to run the preexecution program on the resource manager node, on the first allocated node, or on all the allocated nodes:
See the SLURM srun(1) manpage for more information about the srun command, its options, and the SLURM_JOBID environment variable. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||