NOTE: This is NOT the official helper for any HPC. Use at your own risk.
HPC_Slurm_Helper.mp4
-
Clone the repo
git clone https://github.com/l1997i/slurm_hpc_helper
. Runcd slurm_gui
. -
Run
bash install.sh
to install. -
Modify the config and command in
src/templates/bash
, e.g., changereceipt_addr
and conda environment, etc. -
Set the password with
python reset_password.py <your password>
. -
Open
config.json
in the root folder, and set thedefaults.account
field to your slurm project/account id, anddefaults.home_folder
to your actual home folder. -
(Optional) To modify the form for submitting jobs and the pre-configured settings (e.g., QoS, partition, etc), you need to modify
src/templates/slurm/slurm.html
(Flask template).
-
Start the app with
python main.py
. -
Go to
https://127.0.0.1:15001/
. Log in and go to "slurm".
NOTE: If the page does not load completely, please reload it
- Click "new" button to open the form for submitting jobs. Fill out the form and click "submit" to submit the job to slurm. All required settings are in bold.
- Inspect the submitted job by selecting it in the list.
-
You can also load a previous submit job using
load
button. Fill in thejson
file path of your previous job. -
To cancel a job that is pending or running, select the job and click the 'cancel' button. You can only cancel the job (with helper GUI) which is submitted using this helper.
Log location: ${chdir}/.logs
- job_scripts/ - all your submitted jobs.
- job_scripts/$JOBID/$JOBID.sh - the submitted slurm script.
- job_scripts/$JOBID/$JOBID.json - the submitted job settings. You can upload this to retrieve the configuration of previous job.
- job_scripts/$JOBID/job_info.json - the submitted job info, including where output and scripts are saved.
- runner/ - code tunnel logs.
We would like to additionally thank the authors the open source codebase slurm_gui.