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.

Starting Parallel Tasks with <strong>LSF</strong> Utilities<br />

Starting Parallel Tasks with <strong>LSF</strong> Utilities<br />

Example<br />

For simple parallel jobs you can use <strong>LSF</strong> utilities to start parts of the job on<br />

other hosts. Because <strong>LSF</strong> utilities handle signals transparently, <strong>LSF</strong> can suspend<br />

and resume all components of your job without additional programming.<br />

The simplest parallel job runs an identical copy of the executable on every<br />

host. The lsgrun command takes a list of host names and runs the specified<br />

task on each host. The lsgrun -p command specifies that the task should be<br />

run in parallel on each host.<br />

This example submits a job that uses lsgrun to run myjob on all the selected<br />

hosts in parallel:<br />

% bsub -n 10 ’lsgrun -p -m "$LSB_HOSTS" myjob’<br />

Job is submitted to default queue .<br />

For more complicated jobs, you can write a shell script that runs lsrun in the<br />

background to start each component.<br />

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