LSF Version 7.3 - Using Platform LSF HPC

Integration Method 2
When to use this integration method
In this method, you rewrite or wrap the PJL to include TS and callback information for
TS to communicate with PAM. This method of integration is the most flexible, but may
be more difficult to implement.
Use this method when:
The number of PJL arguments varies
Parallel tasks have a complex startup sequence
The job in the PJL command line could be a script instead of the executable
application that starts the parallel tasks
Using pam to call the PJL
Submit jobs using pam in the following format:
pam [
other_pam_options
] -g
pjl_wrap
[
pjl_wrap_options
]
job
[
job_options
]
The command line includes:
The PJL wrapper script (pjl_wrap) and its options (pjl_wrap_options). This wrapper
script must insert TS in the correct position before the actual job command.
The job to run (job) and its options (job_options)
The job could be a wrapper script that starts the application that starts the parallel
tasks, or it could be the executable application itself
The -g option is required to use the generic PJL framework. You must specify all the
other
pam options before -g.
Placing TaskStarter in your code
Each end job task must be started by the binary TaskStarter that is provided by Platform
Computing.
When you use this method, PAM does not insert TS for you. You must modify your
code to use TS and the LSF_TS_OPTIONS environment variable. LSF_TS_OPTIONS
is created by PAM on the first execution host and contains the callback information for
TS to contact PAM.
You must insert TS and the PAM callback information directly in front of the
executable application that starts the parallel tasks.
To place TS and its options, you can modify either the PJL wrapper or the job script,
depending on your implementation. If the package requires the path, specify the full
path to
TaskStarter.
Example
This example modifies the PJL wrapper. The job script includes both the PJL wrapper
and the job itself.
Without the integration, your job submission command line is:
bsub -n 2 jobscript