Skip to main content

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

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slrm, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size slrm-0.0.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size slrm-0.0.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page