LSF Version 7.3 - Using Platform LSF HPC
Integration Method 1
When to use this integration method
In this method, PAM rewrites the PJL command line to insert TS in the correct position,
and set callback information for TS to communicate with PAM.
Use this method when:
◆
You always use the same number of PJL arguments
◆
The job in the PJL command line is 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
num_args
pjl
[
pjl_options
]
job
[
job_options
]
The command line includes:
◆
The pam command and its options (other_pam_options)
◆
the pam -g
num_args
option
◆
The parallel job launcher or PJL wrapper (pjl) and its options (pjl_options)
◆
The job to run (job) and its options (job_options)
The -g option is required to use the generic PJL framework. You must specify all the
other
pam options before -g.
num_args specifies how many space-separated arguments in the command line are
related to the PJL, including the PLJ itself (after that, the rest of the command line is
assumed to be related to the binary application that launches the parallel tasks).
For example:
◆
A PJL named no_arg_pjl takes no options, so -g 1 is required after the other
pam options:
pam [
pam_options
] -g 1 no_arg_pjl
job
[
job_options
]
◆
A PJL is named 3_arg_pjl and takes the options -a, -b, and
group_name
, so
The option
-g 4 is required after the other pam options:
pam [
pam_options
] -g 4 3_arg_pjl -a -b
group_name
job
[
job_options
]
How PAM inserts TaskStarter
Before the PJL is started, PAM automatically modifies the command line and inserts the
TS, the host and port for TS to contact PAM, and the LSF_ENVDIR in the correct
position before the actual job.
TS is placed between the PJL and the parallel application. In this way, the TS starts each
task, and LSF can monitor resource usage and control the task.
For example, if your LSF directory is
/usr/share/lsf and you input:
pam [
pam_options
] -g 3 my_pjl -b
group_name job
[
job_options
]
PAM automatically modifies the PJL command line to:
my_pjl -b
group_name
/usr/share/lsf/TaskStarter -p
host_name:port_number
-c /user/share/lsf/conf
job
[
job_options
] [
pjl_options
]