25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using <strong>LSF</strong> Make to Run Parallel Jobs<br />

Using <strong>LSF</strong> Make to Run Parallel Jobs<br />

Example<br />

Parjob.makefile<br />

For parallel jobs that have a variety of different components to run, you can<br />

use <strong>Platform</strong> Make. Create a makefile that lists all the components of your<br />

batch job and then submit the <strong>Platform</strong> Make command to <strong>LSF</strong>.<br />

The following example shows a bsub command and makefile for a simple<br />

parallel job.<br />

% bsub -n 4 lsmake -f Parjob.makefile<br />

Job is submitted to default queue .<br />

# Makefile to run example parallel job using lsbatch and<br />

# <strong>Platform</strong> Make<br />

all: part1 part2 part3 part4<br />

part1 part2 part3: myjob data.$@<br />

part4: myjob2 data.part1 data.part2 data.part3<br />

The batch job has four components. The first three components run the myjob<br />

command on the data.part1, data.part2 and data.part3 files. The fourth<br />

component runs the myjob2 command on all three data files. There are no<br />

dependencies between the components, so <strong>Platform</strong> Make runs them in<br />

parallel.<br />

446<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!