Platform LSF Administration Guide Version 6.2

Chapter 28
Running Parallel Jobs
Administering Platform LSF
431
Starting Parallel Tasks with LSF Utilities
For simple parallel jobs you can use LSF utilities to start parts of the job on other hosts.
Because LSF utilities handle signals transparently, LSF can suspend and resume all
components of your job without additional programming.
The simplest parallel job runs an identical copy of the executable on every host. The
lsgrun command takes a list of host names and runs the specified task on each host.
The
lsgrun -p command specifies that the task should be run in parallel on each host.
Example
This example submits a job that uses lsgrun to run myjob on all the selected hosts in
parallel:
%
bsub -n 10 ’lsgrun -p -m "$LSB_HOSTS" myjob’
Job <3856> is submitted to default queue <normal>.
For more complicated jobs, you can write a shell script that runs lsrun in the
background to start each component.