Preparing your environment to submit parallel jobs to LSF

Getting the host list

Some applications can take this list of hosts directly as a command line parameter. For other applications, you may need to process the host list.


The following example shows a /bin/sh script that processes all the hosts in the host list, including identifying the host where the job script is executing.
# Process the list of host names in LSB_HOSTS

for host in $LSB_HOSTS ; do
handle_host $host

Parallel job scripts

Each parallel programming package has different requirements for specifying and communicating with all the hosts used by a parallel job. LSF is not tailored to work with a specific parallel programming package. Instead, LSF provides a generic interface so that any parallel package can be supported by writing shell scripts or wrapper programs.

You can modify these scripts to support more parallel packages.