Skip to main content

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)

Source distribution for slurmipy 2024.0.4
File Size Uploaded
slurmipy-2024.0.4.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slurmipy 2024.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2024.0.4 This release

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