25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 34<br />

Running Parallel Jobs<br />

Preparing Your Environment to Submit Parallel Jobs to<br />

<strong>LSF</strong><br />

Getting the host list<br />

Example<br />

Parallel job scripts<br />

Using a job starter<br />

Some applications can take this list of hosts directly as a command line<br />

parameter. For other applications, you may need to process the host list.<br />

The following example shows a /bin/sh script that processes all the hosts in<br />

the host list, including identifying the host where the job script is executing.<br />

#!/bin/sh<br />

# Process the list of host names in LSB_HOSTS<br />

for host in $LSB_HOSTS ; do<br />

handle_host $host<br />

done<br />

Each parallel programming package has different requirements for specifying<br />

and communicating with all the hosts used by a parallel job. <strong>LSF</strong> is not tailored<br />

to work with a specific parallel programming package. Instead, <strong>LSF</strong> provides a<br />

generic interface so that any parallel package can be supported by writing shell<br />

scripts or wrapper programs.<br />

<strong>LSF</strong> includes example shell scripts for running PVM (pvmjob), P4 (p4job), and<br />

MPI (mpijob) programs as parallel batch jobs. These scripts are installed in the<br />

<strong>LSF</strong>_BINDIR directory as defined in the lsf.conf file.<br />

You can modify these scripts to support more parallel packages.<br />

For more information, see:<br />

◆ “Submitting Parallel Jobs” on page 432<br />

You can configure the script into your queue as a job starter, and then all users<br />

can submit parallel jobs without having to type the script name. See “Queue-<br />

Level Job Starters” on page 376 for more information about job starters.<br />

To see if your queue already has a job starter defined, run bqueues -l.<br />

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

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

Saved successfully!

Ooh no, something went wrong!