Skip to content
python library to submit slurm jobs
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example initial Jan 18, 2020
slrm omit mail in default Feb 4, 2020
.gitignore
LICENSE
README.md
requirements.txt
setup.py

README.md

slrm

Python library to submit slurm jobs.

Installation:

pip install slrm  # from pypi
pip install git+https://github.com/vzhong/slrm  # from github

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!

You can’t perform that action at this time.