snippetbashTip
bsub — Submit batch jobs to LSF (Load Sharing Facility) scheduler. More information: <https://www.ibm.com/d
Viewed 0 times
commandbatchbsubloadclilsfjobssubmit
linux
Problem
How to use the
bsub command: Submit batch jobs to LSF (Load Sharing Facility) scheduler. More information: <https://www.ibm.com/docs/spectrum-lsf/latest?topic=reference-bsub>.Solution
bsub — Submit batch jobs to LSF (Load Sharing Facility) scheduler. More information: <https://www.ibm.com/docs/spectrum-lsf/latest?topic=reference-bsub>.Submit a script file as a job:
bsub {{path/to/script.sh}}Submit a job to a specific queue:
bsub -q {{queue_name}} make allSubmit a job with a name and redirect output and error:
bsub -J {{job_name}} --output {{path/to/output.log}} --error {{path/to/error.log}} {{path/to/script.sh}}Request 8 CPU cores and 16GB memory for a command:
bsub -n 8 -M 16G cargo build --releaseRun an interactive shell in the current session:
bsub -I bashSubmit a job with a runtime limit of 45 minutes:
bsub -W 45 {{path/to/script.sh}}Code Snippets
Submit a script file as a job
bsub {{path/to/script.sh}}Submit a job to a specific queue
bsub -q {{queue_name}} make allSubmit a job with a name and redirect output and error
bsub -J {{job_name}} --output {{path/to/output.log}} --error {{path/to/error.log}} {{path/to/script.sh}}Request 8 CPU cores and 16GB memory for a command
bsub -n 8 -M 16G cargo build --releaseRun an interactive shell in the current session
bsub -I bashContext
tldr-pages: linux/bsub
Revisions (0)
No revisions yet.