Submitting Shifter jobs to LSF
Use the Shifter application profiles or queues to submit Shifter jobs to LSF.
Before you begin
About this task
The following job submission (bsub) options are not supported for container jobs: -E, -Ep.
Procedure
- Use the bsub -app option to submit a job to a Shifter application profile
(that is, an application profile with a specified value for the CONTAINER
parameter).
For example, if CONTAINER is defined in the
shifterapp
application profile, run the following command to submit a Shifter job:bsub -app shifterapp ./myjob.sh
- Use the bsub -q option to submit a job to a Shifter queue (that is, a
queue with a specified value for the CONTAINER parameter).
For example, if CONTAINER is defined in the
shifterq
queue, run the following command to submit a Shifter job:bsub -q shifterq ./myjob.sh
If you specify both the application profile and the queue in the same job submission, the CONTAINER and EXEC_DRIVER parameter settings in the application profile take precedence over the same parameter settings in the queue.
For example, if you submit a job with the following command, the parameters in the shifterapp application profile override the corresponding parameters in the shifterq queue:
bsub -app shifterapp -q shifterq ./myjob.sh
- If the CWD is not accessible inside the container, the CWD is automatically set to the root directory in the container.
- IBM® Spectrum LSF Session Scheduler cannot run in Shifter containers.