SLURM Script Generator
PERUN Slurm Script Generator
Interactive generator with automatic scratch support
Slurm · PERUN · HPC
Job Configuration
Fill in the form and the Slurm script will be generated below.
Enable automatic scratch
Force specific node
Append output
Set OMP_NUM_THREADS
Email Notifications
Select when to receive email notifications about your job.
Shortcuts
BEGIN,END,FAIL
ALL
NONE (clear)
Job states
BEGIN
END
FAIL
REQUEUE
ALL
Time limits
TIME_LIMIT (100%)
TIME_LIMIT_90
TIME_LIMIT_80
TIME_LIMIT_50
Other
ARRAY_TASKS
STAGE_OUT
INVALID_DEPEND
Automatic Scratch (Recommended)
When enabled, your job automatically runs in fast Lustre scratch with 40x faster I/O. Just add source .activate_scratch and everything else is handled by prolog/epilog. Results are synced to ~/results_job_XXXXX/ after completion.
GPU Jobs
For GPU jobs, always use the GPU partition and request GPUs via --gres=gpu:X.
Email Notifications
ALL = BEGIN + END + FAIL + REQUEUE + STAGE_OUT. Options can be combined, e.g. END,TIME_LIMIT_80. ARRAY_TASKS sends per-task notifications for job arrays (otherwise only summary).
Node Selection
Avoid forcing a specific node in production. Let Slurm schedule your job optimally.
Generated Slurm Script
#!/bin/bash · #SBATCH · automatic scratch · prolog/epilog
How It Works
PROLOG (automatic): Creates scratch, copies filesYOUR JOB: Runs in fast scratch with
source .activate_scratchEPILOG (automatic): Syncs results back, cleanup
Submit & Monitor
sbatch job.sh · squeue -u $USER · tail -f ~/results_job_*/output.log