Platform LSF Administration Guide Version 6.2
Chapter 28
Running Parallel Jobs
Administering Platform LSF
441
Using LSF Make to Run Parallel Jobs
For parallel jobs that have a variety of different components to run, you can use
Platform Make. Create a makefile that lists all the components of your batch job and
then submit the Platform Make command to LSF.
Example
The following example shows a bsub command and makefile for a simple parallel job.
%
bsub -n 4 lsmake -f Parjob.makefile
Job <3858> is submitted to default queue <normal>.
Parjob.makefile
# Makefile to run example parallel job using lsbatch and
# Platform Make
all: part1 part2 part3 part4
part1 part2 part3: myjob data.$@
part4: myjob2 data.part1 data.part2 data.part3
The batch job has four components. The first three components run the myjob
command on the
data.part1, data.part2 and data.part3 files. The fourth
component runs the
myjob2 command on all three data files. There are no
dependencies between the components, so Platform Make runs them in parallel.