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.

Submitting MPI Jobs<br />

Submitting MPI Jobs<br />

mpijob script<br />

mpijob syntax<br />

Example<br />

The Message Passing Interface (MPI) is a portable library that supports parallel<br />

programming. <strong>LSF</strong> supports MPICH, a joint implementation of MPI by Argonne<br />

National Laboratory and Mississippi State University. This version supports<br />

both TCP/IP and IBM’s Message Passing Library (MPL) communication<br />

protocols.<br />

<strong>LSF</strong> provides an mpijob shell script that you can use to submit MPI jobs to <strong>LSF</strong>.<br />

The mpijob script writes the hosts allocated to the job by <strong>LSF</strong> to a file and<br />

supplies the file as an option to MPICH’s mpirun command.<br />

mpijob -tcp mpirun program arguments<br />

Write the <strong>LSF</strong> hosts to a PROCGROUP file, supply the -p4pg procgroup_file<br />

option to the mpirun command, and use the TCP/IP protocol. This is the<br />

default.<br />

mpijob -mpl mpirun program arguments<br />

Write the <strong>LSF</strong> hosts to a MACHINE file, supply the<br />

-machinefile machine_file option to the mpirun command, and use the<br />

MPL on an SP-2 system.<br />

◆ program—The parallel executable to be run<br />

◆ arguments—Any arguments required by the parallel executable<br />

To submit a job requesting four hosts and using the default TCP/IP protocol,<br />

use:<br />

% bsub -n 4 mpijob mpirun myjob<br />

Submitting jobs to a pool of IBM SP-2 nodes<br />

Before you can submit a job to a particular pool of IBM SP-2 nodes, an <strong>LSF</strong><br />

administrator must install the SP-2 ELIM. The SP-2 ELIM provides the pool<br />

number and lock status of each node.<br />

To submit the same job to run on four nodes in pool 1 on an IBM SP-2 system<br />

using MPL, use:<br />

% bsub -n 4 -R "pool == 1" mpijob -mpl mpirun myjob<br />

To submit the same job to run on four nodes in pool 1 that are not locked<br />

(dedicated to using the High Performance Switch) on an SP-2 system using<br />

MPL, use:<br />

% bsub -n 4 -q mpiq -R "pool == 1 && lock == 0" mpijob -mpl mpirun myjob<br />

434<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!