Python Slurm script interface
Project description
slurm_script
Python Slurm command generator
This package is designed to generate slurm script to submit mpi
jobs to a cluster.
Usage
slurm_script version: 0.1.2
usage: slurm_script [-h] [-n NPROC] [-j JOB_NAME] [-t TIME] [-m MEM_PER_CPU]
[-c COMMAND [COMMAND ...]]
python interface to generate and run slurm command.
options:
-h, --help show this help message and exit
-n NPROC, --nproc NPROC
Number of processors to run the job.
-j JOB_NAME, --job-name JOB_NAME
Name of the job.
-t TIME, --time TIME Maximum runtime [hours:minutes:second].
-m MEM_PER_CPU, --mem-per-cpu MEM_PER_CPU
Memory per core [MB].
-c COMMAND [COMMAND ...], --command COMMAND [COMMAND ...]
Program command.
Example
$ sjob -n 10 -j test_run -t 10:00:00 -m 1024 -mail BEGIN,END,FAIL -nt 1 -cnt 10 -a module add python -c python test.py
slurm_script version: 0.1.6
Preview of the generated script:
--------------------------------
#!/bin/bash
#SBATCH -n 10
#SBATCH --job-name=test_run
#SBATCH --time=10:00:00
#SBATCH --mem-per-cpu=1024
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=10
module add python
mpirun python test.py
--------------------------------
Do you want to run the script? [y/n]
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
slurm-script-0.1.7.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for slurm_script-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033321b7ffdf4e7c2028ff92ce0154f3cc047fdce37d01c67acaa0fbff57fa11 |
|
MD5 | 56d38ed2d41f3a09cf2262c6192893a9 |
|
BLAKE2b-256 | 80a2434999966bb7cb7df8bf8b45396ea22ca100f2ed7055f371ca81cf7113d1 |