Platform LSF Administrator's Primer Version 6.2

Chapter 2
Working with LSF
Platform LSF Administrator’s Primer
29
#! /bin/sh
bsub -R "rusage[abc_license=1:duration=1]" abc_real
When users run abc, they are actually running a script to submit a job abc_real to
LSF using 1 shared resource named
abc_license.
For more information about specifying shared resources using the resource requirement
(
rusage) string on the -R option of bsub, see Chapter 5, “Using Shared Resources to
Manage Software Licenses”.
By adding appropriate options to the script, you can enhance your integration to:
Requeue jobs based on license availability
Copy input and output files to and from the local directory on the execution host
Calculate and estimate resource requirements
Wrapper binary
programs
A wrapper binary is similar to a wrapper shell script in the form of a compiled binary
executable. Compiled wrapper binaries usually run faster and more efficiently than shell
scripts, and they also have access to the LSF API (LSLIB and LSBLIB). Binary code is
also more secure because users cannot modify it without the source code and
appropriate libraries, but it is more time consuming to develop wrapper binary programs
than wrapper shell scripts.
Modifying existing application source code and interfaces
LSF is already integrated closely with many commonly used software products. Platform
and other software application vendors provide facilities and services for closer
integration of LSF and other applications. By modifying existing application user
interfaces, you can enable easy job submission, license maximization, parallel execution,
and other advanced LSF features. In some cases, you are able to run an LSF job directly
from the application user interface.
We can work with you to discuss your specific application integration requirements.
Contact your application vendor or Platform for more information.
For more information
See Administering Platform LSF for more information about running jobs with
LSF.
See the Platform LSF Reference for information about the lsrun, lsgrun, bsub,
and
bjobs commands.
See Using the Platform LSF SDK for more information about writing programs
that use the LSF API.
Where to go next
Learn about administering your Platform LSF cluster, described in Chapter 3,
Managing Your Cluster”.