OAR plugin for Submitit
Project description
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
):
pip install git+https://github.com/ychiat35/submitit_oar@main#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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file submitit_oar-1.0.0.tar.gz
.
File metadata
- Download URL: submitit_oar-1.0.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12dde0bed35732e1eb45292ed6634b3d9d8735f112581ee55b927e6242e83e31 |
|
MD5 | e790e100dde493fc443f12dbb764d697 |
|
BLAKE2b-256 | 198b2c64ddb81c0aa39f979248f09869db138cec460981c2c668d1e4be57d851 |
File details
Details for the file submitit_oar-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: submitit_oar-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31cb1ba2835891a1e6608b3173676cd55d672cfe58ad5ffd884d3faa882b804d |
|
MD5 | a08255f5b63527abb4a1b61680965d11 |
|
BLAKE2b-256 | f1e854120604507855039d723b79a727d3ad4d53dd2e482c4c1a5482212b1350 |