Skip to main content

What is submitit_oar?

submitit_oar is an Oar plugin for Submitit, which is a Python 3.8+ lightweight toolbox for submitting Python functions for computation within a Slurm cluster. It basically wraps submission and provide access to results, logs and more.

How to install submitit_oar?

Quick install, in a virtualenv/conda environment where pip is installed (check which pip):

  • latest release:
pip install submitit_oar==1.1.2
  • from source:
pip install git+https://gitlab.inria.fr/grid5000/submitit_oar@master#egg=submitit_oar

How to use the submitit_oar plugin?

From inside an environment with submitit and submitit_oar installed, you can run this addition example:

import submitit

def add(a, b):
    return a + b

# logs are dumped in the folder
executor = submitit.AutoExecutor(folder="log_test", cluster="oar")

job_addition = executor.submit(add, 5, 7)  # will compute add(5, 7)
output = job_addition.result()  # waits for completion and returns output
# if ever the job failed, result() will raise an error with the corresponding trace
print('job_addition output: ', output)
assert output == 12

You can try running this above example with a breakpoint at https://github.com/facebookincubator/submitit/blob/main/submitit/core/plugins.py#L33, to be sure that Submitit correctly finds the submitit_oar plugin.

Releasing submitit_oar

Create a tag matching the version to release in gitlab, it should create a pipeline which will push the package to PyPi. If you want to do this manually, populate the FLIT_PASSWORD environment variable with the API token, and run make release

Metadata

Release files for submitit_oar 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for submitit_oar 1.1.2
File Size Uploaded
submitit_oar-1.1.2.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for submitit_oar 1.1.2
File Interpreter ABI Platform
submitit_oar-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / submitit_oar-1.1.2.tar.gz

Download URL submitit_oar-1.1.2.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8bc2e6cfe96e856403bad60977f58ed33737b75bb2e7775da49a80eea475b975
BLAKE2b-256 checksum
How to use checksums
e88d16d8c6b5e6b4fcaff1f417bd1a210349981264abe1571a1ded13be5e99d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / submitit_oar-1.1.2-py3-none-any.whl

Download URL submitit_oar-1.1.2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04fe2cb48b0b5f4256779a04c9c14181ca6cd2becc83d4f8d3b07247eefd4b4e
BLAKE2b-256 checksum
How to use checksums
f5f21940fd6f98736d91137ac0113fa781ae4c29704c4082071767c62a371b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page