Helper scripts and wrappers for running commands on SLURM compute clusters.
Project description
This project is in a draft state.
Utility functions to make working with SLURM easier.
Installation
Cluster utils is meant to be run in a SLURM environment, and thus will only install on linux. Open a shell and run the following command:
curl -sSL https://raw.githubusercontent.com/pvandyken/kslurm/master/install_kslurm.py | python -
If you wish to uninstall, run the same command with --uninstall added to the end.
The package can be updated by running kslurm update.
Features
Currently offers two commands:
- kbatch: for batch submission jobs (no immediate output)
- krun: for interactive submission
Both support a regex-based argument parsing, meaning that instead of writing a SLURM file or supplying confusing --command-arguments, you can request resources with an intuitive syntax:
krun 4 3:00 15G gpu
This command will request interactive session with 4 cores, for 3hr, using 15GB of memory, and a gpu.
You could also add a command to run immediately:
krun jupyter-lab '$(hostname)' --no-browser
You can directly submit commands to kbatch without a script file:
kbatch 00:30 1000MB cp very/big/file.mp4 another/location
Both kbatch and krun default to 1 core, for 3hr, with 4G of memory.
You can also run a predefined job template using -j template. Run either command with -J to get a list of all templates. Any template values can be overriden simply by providing the appropriate argument.
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
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 kslurm-0.2.2.tar.gz.
File metadata
- Download URL: kslurm-0.2.2.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f76b25ef91b6e13cb9dcf4f63fea8be495aae732d49fa7d4a8cf86dad2f84cf5
|
|
| MD5 |
79ff54e8555ba7d97a52e0b4326d7bd6
|
|
| BLAKE2b-256 |
fcb5c0457ceb8790a873959dc36b4183396f3f8db9b6a735a14aed7b8524bfae
|
File details
Details for the file kslurm-0.2.2-py3-none-any.whl.
File metadata
- Download URL: kslurm-0.2.2-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e02fb91e30b4bf8769bace2549a4024495226d513a0ddaf53196d0c52bd7e1c
|
|
| MD5 |
752d0a1277f4f851623137420569d5f1
|
|
| BLAKE2b-256 |
0a67cb2a57257d3e0699e5a9e8720d4609b4307cac32fcc2046b28664325edb1
|