Skip to content
Projekte

Über uns

Toolbox für Python 3.8+ zum Übermitteln von Jobs an Slurm

Weitere Projekte

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+1
in 7 days
+4
in 15 days
+5
in 1 month
+6

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

CI Ruff Pypi conda-forge

submitit

submitit submits Python functions to Slurm from Python, and returns their results, errors and logs. The same code runs locally.

pip install submitit  # or: conda install -c conda-forge submitit

Requires Python 3.11+.

For OAR support, install the submitit_oar plugin:

pip install submitit_oar
import submitit


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


executor = submitit.AutoExecutor(folder="logs/%j")
executor.update_parameters(timeout_min=10, slurm_partition="<your_partition>")
job = executor.submit(add, 5, 7)
print(job.job_id)
assert job.result() == 12

Documentation: https://facebookincubator.github.io/submitit/

Contributors

By chronological order: Jérémy Rapin, Louis Martin, Lowik Chanussot, Lucas Hosseini, Fabio Petroni, Francisco Massa, Guillaume Wenzek, Thibaut Lavril, Vinayak Tantia, Andrea Vedaldi, Max Nickel, Quentin Duval, Rushil Patel. Contributions are welcome.

License

Submitit is released under the MIT License.

Ähnliche Projekte entdecken

Wird geladen…