The examples described in this section demonstrate how you can integrate LSF License Scheduler with your applications. Contact Platform Computing Professional Services for specific integration projects.
Applications with licenses that come with several features require some configuration and are candidates for integration with LSF License Scheduler. The application users may not know which license features they must check out. A script is used to determine which license features require LSF License Scheduler tokens.
The applications must work with Platform LSF or LSF Task Manager (taskman)
The applications should be able to release their licenses upon job suspension
LSF License Scheduler is configured to preempt low priority jobs with higher priority jobs
License projects must be defined in the lsf.licensescheduler file
Write a script that determines which license features are needed for a job. The script receives the license requirements from application options or input files, where available, and outputs the information to the bsub command using the following format:
AppLicense=1:Feature=1
Configure the application features and policy rules in the lsf.licensescheduler file.
Update wrapper scripts to call the script that outputs the feature information to the bsub command. Alternatively, show application users how to submit their jobs with their required features in the bsub command.
Synopsys® Design Compiler® users run the Perl script with a .scr input file.
The Perl script, dc_features.pl is added to the LSF_BINDIR.
To use the Perl script in bash shell:
features=`dc_features.pl [optional parameters] -f synthesis.scr [optional parameters]`
if [ $? = 0 ] ; then
Project="Lp1"
bsub -Lp $Project -R "rusage[$features]" dc_shell ... -f synthesis.scr ...
fi
Contact Platform Professional Services for usage in other shells or in Windows.
MSC Nastran users run the Perl script with a .bdf input file.
The Perl script, nastran_features.pl is added to the LSF_BINDIR.
To use the Perl script in C-shell:
set features=`nastran_features.pl [optional parameters] input.bdf batch=no
...
`
if ( $status == 0 ) then
Project="Lp2"
bsub -Lp $Project -R "rusage[$features]" nastran ... input.bdf batch=no ...
endif
Contact Platform Professional Services for usage in other shells or in Windows.