SlurmiPy
Run python functions on a SLURM cluster as easy as:
@slurm_cluster.execute
def hello_world():
print("YAY, I am running via SLURM!")
SlurmiPy provides a factory class for managing Dask clusters on SLURM-based systems and provides very easy exectution of python code on a SLURM cluster.
Installation
pip install slurmipy
Usage
Here iss a basic example of how to use SlurmiPy on NERSCs' Perlmutter Supercomputer:
from slurmipy import SlurmiPy, configs
# Create a SLURM cluster with 4 jobs
slurm_cluster = SlurmiPy(jobs=4, **configs["perlmutter_shared_interactive"])
@slurm_cluster.execute
def process_data(data):
return [x**2 for x in data]
# Execute the function using the SLURM cluster
result = process_data([1, 2, 3, 4])
print(result) # Output: [1, 4, 9, 16]
Release files for slurmipy 2024.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slurmipy-2024.0.4.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slurmipy-2024.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / slurmipy-2024.0.4.tar.gz
| Download URL | slurmipy-2024.0.4.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b3b607e652ad58341e11d4e8311d496347df781d80d599536d2b33307802999
|
|
BLAKE2b-256 checksum How to use checksums |
26d461cc3a9669e7107c9025a18c4a44d20e409f9e3510576d0e3c6ddc41ad1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|
Release files / slurmipy-2024.0.4-py3-none-any.whl
| Download URL | slurmipy-2024.0.4-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fae82e3bd7ea51cebb69cdf48e1b9a686e19fe017ce366251bc0cb6d2b6e2313
|
|
BLAKE2b-256 checksum How to use checksums |
4f2a9307bec5ca09740ae55066651aa0b08c500f5bd7b62d08c6fe90bfb5431d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|