Slurm launcher in Python.
Project description
slrm
Python library to submit slurm jobs.
Installation:
pip install git+https://github.com/vzhong/slrm
Usage:
import os
import slrm
for city, state in [('vancouver', 'bc'), ('toronto', 'on'), ('stanford', 'ca'), ('seattle', 'wa')]:
cmd = 'python myscript.py --city {} --state {}'.format(city, state)
slurm_kwargs = {'account': 'cse', 'partition': 'cse-gpu'}
# you can see default args in slrm.launcher.default_args
slrm.launch(cmd, slurm_kwargs, dout=os.path.join('jobs', '{}-{}'.format(city, state)), dry=False)
Pull requests welcome!
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
slrm-0.0.1.tar.gz
(3.4 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
slrm-0.0.1-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file slrm-0.0.1.tar.gz.
File metadata
- Download URL: slrm-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3b17094233aa3b48dde47d59ca2a072f758bb081b622387556c2224c3cdd9ce
|
|
| MD5 |
eec19d363d8cddf1e5b2b001e76c50ec
|
|
| BLAKE2b-256 |
2d23e562127aafbb1bfd5a39ea1eddc80f5f4de8b16ae5fe47d14b7e289e8e74
|
File details
Details for the file slrm-0.0.1-py3-none-any.whl.
File metadata
- Download URL: slrm-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f576a5e6a6bc1164322340fedbdcbef159ee0054031c2402c7f6b2fa7aa1ce98
|
|
| MD5 |
6e13286ed978e25596b56acb49af6ab1
|
|
| BLAKE2b-256 |
c85e1aa961754180c8a24194352e6cbcc634af2a52c2953f11d64e7aa301a0f4
|