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.

Creating a Job Array<br />

Creating a Job Array<br />

Syntax<br />

A job array is created at job submission time using the -J option of bsub. For<br />

example, the following command creates a job array named myArray made up<br />

of 1000 jobs.<br />

% bsub -J "myArray[1-1000]" myJob<br />

Job is submitted to default queue .<br />

The bsub syntax used to create a job array follows:<br />

% bsub -J "arrayName[indexList, ...]" myJob<br />

Where:<br />

-J "arrayName[indexList, ...]"<br />

Names and creates the job array. The square brackets, [ ], around indexList<br />

must be entered exactly as shown and the job array name specification must<br />

be enclosed in quotes. Commas (,) are used to separate multiple indexList<br />

entries. The maximum length of this specification is 255 characters.<br />

arrayName<br />

User specified string used to identify the job array. Valid values are any<br />

combination of the following characters:<br />

a-z | A-Z | 0-9 | . | - | _<br />

indexList = start[-end[:step]]<br />

Specifies the size and dimension of the job array, where:<br />

◆ start<br />

Used with end to specify the start of a range of indices. Can also be used<br />

to specify an individual index. Valid values are unique positive integers.<br />

For example, [1-5] and [1, 2, 3, 4, 5] specify 5 jobs with indices 1<br />

through 5.<br />

◆ end<br />

Specifies the end of a range of indices. Valid values are unique positive<br />

integers.<br />

◆ step<br />

Specifies the value to increment the indices in a range. Indices begin at<br />

start, increment by the value of step, and do not increment past the<br />

value of end. The default value is 1. Valid values are positive integers. For<br />

example, [1-10:2] specifies a range of 1-10 with step value 2 creating<br />

indices 1, 3, 5, 7, and 9.<br />

After the job array is created (submitted), individual jobs are referenced using<br />

the job array name or job ID and an index value. For example, both of the<br />

following series of job array statements refer to jobs submitted from a job array<br />

named myArray which is made up of 1000 jobs and has a job ID of 123:<br />

myArray[1], myArray[2], myArray[3], ..., myArray[1000]<br />

123[1], 123[2], 123[3], ..., 123[1000]<br />

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