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.

Chapter 25<br />

Job Arrays<br />

Job Array Dependencies<br />

Whole array dependency<br />

Partial array dependency<br />

Like all jobs in <strong>LSF</strong>, a job array can be dependent on the completion or partial<br />

completion of a job or another job array. A number of job-array-specific<br />

dependency conditions are provided by <strong>LSF</strong>.<br />

To make a job array dependent on the completion of a job or another job array<br />

use the -w "dependency_condition" option of bsub. For example, to have<br />

an array dependent on the completion of a job or job array with job ID 123,<br />

you would use the following command:<br />

% bsub -w "done(123)" -J "myArray2[1-1000]" myJob<br />

To make a job or job array dependent on an existing job array you would use<br />

one of the following dependency conditions.<br />

Condition<br />

numrun(jobArrayJobId, op num)<br />

numpend(jobArrayJobId, op num)<br />

numdone(jobArrayJobId, op num)<br />

numexit(jobArrayJobId, op num)<br />

numended(jobArrayJobId, op num)<br />

numhold(jobArrayJobId, op num)<br />

numstart(jobArrayJobId, op num)<br />

Description<br />

Evaluate the number of jobs in RUN state<br />

Evaluate the number of jobs in PEND state<br />

Evaluate the number of jobs in DONE state<br />

Evaluate the number of jobs in EXIT state<br />

Evaluate the number of jobs in DONE and<br />

EXIT state<br />

Evaluate the number of jobs in PSUSP state<br />

Evaluate the number of jobs in RUN and SSUSP<br />

and USUSP state<br />

Use one the following operators (op) combined with a positive integer (num)<br />

to build a condition:<br />

== | > | < | >= |

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

Saved successfully!

Ooh no, something went wrong!