IBMSpectrumComputing / lsf-python-api

Location for the LSF Python wrapper for controlling all things LSF
http://ibmspectrumcomputing.github.io/lsf-python-api/
Eclipse Public License 1.0
103 stars 66 forks source link
batch-scheduler hpc-applications hpc-systems lsf parallel-computing python

LSF Python API

These python wrappers allow customers to submit and control jobs and obtain status of queues, hosts and other LSF attributes from Python directly. They work with various versions of LSF and are maintained by LSF developement, though we take contributions from the Open Source community.

If you plan or would like to contribute to the library, you must follow the DCO process in the attached DCO Readme file in the root of this repository. It essentially requires you to provide a Sign Off line in the notes of your pull request stating that the work is clear of infinging work by others. Again, for more details, please see the DCO Readme file.

Release Information

Contents

Introduction

This library allows you to call the LSF APIs directly through Python. You can find some examples here. The wrapper is created using Pythons SWIG interface and links directly to LSF's shared libraries.

You are encouraged to contribute your own Python wrappers to the Open Source LSF APIs for Python, and you may find more information and usage notes in IBM Knowledge Center and IBM Support Community.

IBM provides formal support for this software to entitled clients via the normal IBM support channels.

This software is Licensed under the Eclipse Public License.

Please note you must use lsf.lsb_init before any other LSBLIB library routine in your application.

Supported Environment

Compatibility

    For LSF 10.1.0.2 or earlier version, the compatibility is not guaranteed
    if you update LSF at a later time. To avoid this compatibility issue, 
    update LSF to version 10.1.0.3, or later, then rebuild and reinstall the 
    LSF Python API package.

Installation

Before compiling the library, set the LSF environment variables:

$ source profile.lsf

If using python version higher than 3.10, distutils has been deprecated, install setuptools:

$ pip3 install setuptools

To compile and install the library, go to the main source directory and type:

$ python setup.py build or $ python3 setup.py build

$ sudo python setup.py install or $ sudo python3 setup.py install

To instead build an RPM:

$ python setup.py bdist_rpm or $ python3 setup.py bdist_rpm

Resulting RPMs will be placed in the dist directory

Release Notes

Release 1.0.6

Release 1.0.5

Release 1.0.4

Release 1.0.3

Release 1.0.2

Release 1.0.1

Community Contribution Requirements

Community contributions to this repository must follow the IBM Developer's Certificate of Origin (DCO) process and only through GitHub Pull Requests:

  1. Contributor proposes new code to community.

  2. Contributor signs off on contributions (i.e. attachs the DCO to ensure contributor is either the code originator or has rights to publish. The template of the DCO is included in this package).

  3. IBM Spectrum LSF development reviews contribution to check for: i) Applicability and relevancy of functional content ii) Any obvious issues

  4. If accepted, posts contribution. If rejected, work goes back to contributor and is not merged.

Copyright

(C) Copyright IBM Corporation 2016-2020

U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

IBM(R), the IBM logo and ibm.com(R) are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.