Run cluster jobs by tool flow; define its resources and environment once.
hpc run xrun -f top.fhpc-runner turns this into the matching scheduler call, with the queue, CPUs, memory, licences and Environment Modules that your project's config says an Xcelium run needs.
- No more "Works for me!™". Job settings and module versions live in a
config file under version control. Every job runs
module purgeand loads only the modules that config names, so a flow that works for one user works for all of them. - No scheduler flags to learn. Ask for
--cpu 8 --mem 16G; hpc-runner writes the SGE or Slurm arguments for your site. - One interface for several schedulers. The same command, config and Python API on SGE and Slurm.
- People running one-shot jobs: one tool or flow on one host, across N CPUs, with dependencies.
- Teams that load their tools with Environment Modules.
- Projects that want repeatable job environments across every user.
- Complex MPI or multi-node jobs.
- Sites that don't use Environment Modules.
- Users who want every scheduler feature as a first-class option.
- Config by tool or job type. Settings are keyed on the command's first
word (
xrun), or on a job type (-t lint) for makefiles and scripts. - Project config, local overrides.
hpc-runner.tomlat the git root sets up the project; ahpc-runner.tomlin any sub-directory allows for escape hatch overrides. - Raw scheduler flags when you need them:
-S '-l gpu=1'. - More than submission:
hpc status(active jobs,--history, one job),hpc cancel, andhpc monitor, a terminal UI for your jobs. - See before you submit:
--dry-runprints the job script;hpc config resolve CMDshows which config layer set each value. - Checked config: unknown keys and wrong types are errors with the file, line and a "did you mean".
- CLI or Python: the same jobs from scripts, with dependencies, arrays and pipelines.
- Local mode:
HPC_SCHEDULER=localruns a job on this machine with the same module environment.
pipx install hpc-runner # or: uv tool install hpc-runner
hpc config init # writes a starter hpc-runner.tomlPython 3.10 or later.
hpc run xterm # interactive (default): hpc waits, output streams here
hpc run --batch -t lint make lint # batch, using the "lint" job type
hpc run --batch --cpu 4 --mem 16G make sim # resources for this run only
hpc run --dry-run make sim # print the job script, don't submit
hpc run -S '-l gpu=1' python train.py # raw scheduler flags
hpc status --history --since 2h # what ran recentlyThe project config, hpc-runner.toml at the git root, kept under version
control:
config_version = 1
scheduler = "sge" # or "slurm"; never guessed
[defaults]
cpu = 1
mem = "4G"
time = "1:00:00"
modules_path = ["/site/modulefiles"]
[schedulers.sge]
parallel_environment = "smp"
memory_resource = "mem_free"
[tools.xcelium]
commands = ["xrun", "xmvlog", "xmelab", "simvision"]
modules = ["xcelium/23.09"]
licenses = { xcelium_lic = 1 }
cpu = 4
mem = "16G"
[tools.slang]
modules = ["slang/0.9"]
[types.lint]
tools = ["xcelium", "slang"] # both tools' modules and licences
cpu = 2A hpc-runner.toml in a sub-directory changes tools and types for jobs run
from there:
config_version = 1
[tools.xcelium]
mem = "64G" # the big testbench in this directorySettings layer from [defaults], through the tool or type, the local file,
to the command line. See the
configuration reference.
| Scheduler | Status |
|---|---|
| SGE / Open Grid Scheduler 8.1.9 | ✅ Supported |
| Slurm 22.05, 24.11 | ✅ Supported |
| Local (no scheduler) | ✅ Supported |
| PBS / Torque, LSF | Planned |
https://sjalloq.github.io/hpc-runner/
Bug reports and ideas are welcome in Issues. Help testing on PBS or LSF sites is especially useful. To build and test, see the development guide.
MIT. See LICENSE.