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.

Handling Input and Output Files<br />

Handling Input and Output Files<br />

<strong>LSF</strong> provides methods for coordinating individual input and output files for the<br />

multiple jobs created when submitting a job array. These methods require your<br />

input files to be prepared uniformly. To accommodate an executable that uses<br />

standard input and standard output, <strong>LSF</strong> provides runtime variables (%I and<br />

%J) that are expanded at runtime. To accommodate an executable that reads<br />

command line arguments, <strong>LSF</strong> provides an environment variable<br />

(LSB_JOBINDEX) that is set in the execution environment.<br />

Methods ◆ “Redirecting Standard Input and Output” on page 335<br />

◆ “Passing Arguments on the Command Line” on page 336<br />

Preparing input files<br />

<strong>LSF</strong> needs all the input files for the jobs in your job array to be located in the<br />

same directory. By default <strong>LSF</strong> assumes the current working directory (CWD);<br />

the directory from where bsub was issued. To override CWD, specify an<br />

absolute path when submitting the job array.<br />

Each file name consists of two parts, a consistent name string and a variable<br />

integer that corresponds directly to an array index. For example, the following<br />

file names are valid input file names for a job array. They are made up of the<br />

consistent name input and integers that correspond to job array indices from<br />

1 to 1000:<br />

input.1, input.2, input.3, ..., input.1000<br />

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