LSF Version 7.3 - Platform LSF Configuration Reference
Example
You can use LSB_JOBINDEX in a shell script to select the job command to be performed based
on the job array index.
For example:
if [$LSB_JOBINDEX -eq 1]; then cmd1 fi if [$LSB_JOBINDEX -eq 2]; then cmd2 fi
See also
LSB_JOBINDEX_STEP, LSB_REMOTEINDEX
LSB_JOBINDEX_STEP
Syntax
LSB_JOBINDEX_STEP=step
Description
Step at which single elements of the job array are defined.
Valid values
Any integer greater than zero but less than the maximum job array size
Default
1
Notes
LSB_JOBINDEX_STEP is set when a job array is dispatched. Its value corresponds to the step
of the job array index. This variable is set only for job arrays.
Where defined
Set during job execution based on bsub options.
Example
The following is an example of an array where a step of 2 is used:
array[1-10:2] elements:1 3 5 7 9
If this job array is dispatched, then LSB_JOBINDEX_STEP=2
See also
LSB_JOBINDEX
LSB_JOBNAME
Syntax
LSB_JOBNAME=job_name
Environment variables
Platform LSF Configuration Reference 573