No project description provided
Project description
slurmit
This project is work in progress
A minimalistic reimplementation of submitit for Slurm.
Features
- Submit Python functions to SLURM
- Configure SLURM job parameters through templates
- Handle SLURM and runtime errors
- Retrieve job results
Installation
hatch create env
or
pip install -U -e .
Usage
Prepare template
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --partition={partition}
#SBATCH --gres=gpu:{num_gpu}
module load cuda
Run the following script
from slurmit import SlurmExecutor
def add(x, y):
return x + y
ex = SlurmExecutor("slurm_outputs",
"template.sh",
dict(partition="main", num_gpu=1))
job = ex.submit(add, 1, y=2)
print(job.result()) # 3
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
slurmit-0.0.3.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slurmit-0.0.3.tar.gz.
File metadata
- Download URL: slurmit-0.0.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ae1427eceae75b24b8cb84a252e677539f1f64e359be6856eef6a47ab525a8
|
|
| MD5 |
480f0c7e1ef2f7295b4f07453025f0bc
|
|
| BLAKE2b-256 |
cddae60f13fc30afa037cfe920e8eca5d0af4c55846046f8e05056573752496b
|
File details
Details for the file slurmit-0.0.3-py3-none-any.whl.
File metadata
- Download URL: slurmit-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
240760700c3497649c03bee38d471b3b2ca3e65e863bebda4c0d5999ac4fb039
|
|
| MD5 |
a2678be1dc2bdde2b729ff3a4dd8a44e
|
|
| BLAKE2b-256 |
b1d2ce1e471ef9a2c5e47974aa45a87ea00d3a179d113a0bee4db6fb9a7ab5be
|