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!
Metadata
Release files for slrm 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slrm-0.0.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slrm-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / slrm-0.0.1.tar.gz
| Download URL | slrm-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3b17094233aa3b48dde47d59ca2a072f758bb081b622387556c2224c3cdd9ce
|
|
BLAKE2b-256 checksum How to use checksums |
2d23e562127aafbb1bfd5a39ea1eddc80f5f4de8b16ae5fe47d14b7e289e8e74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / slrm-0.0.1-py3-none-any.whl
| Download URL | slrm-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f576a5e6a6bc1164322340fedbdcbef159ee0054031c2402c7f6b2fa7aa1ce98
|
|
BLAKE2b-256 checksum How to use checksums |
c85e1aa961754180c8a24194352e6cbcc634af2a52c2953f11d64e7aa301a0f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|