Slurm Utilities¶
Wraps Slurm CLI with clean and beautiful output.
Examples¶
python -m kiui.slurm --help
# short cut:
kism --help
# check cluster information (sinfo)
kism info
kism i # short cut
# check node details (scontrol show node)
kism i <nodename>
# check job details (scontrol show job)
kism job <jobid>
kism j <jobid> # short cut
# show current user's jobs (squeue)
kism queue
kism q # short cut
# show all users' jobs
kism q -a
# show specific user's jobs
kism q -u <username>
# check job history (sacct)
kism history
kism h # short cut
# check job history for the last 7 days (default is 3)
kism h -d 7
# check job logs (stdout, last 100 lines)
kism log <jobid>
kism l <jobid> # short cut
# check job stderr
kism l <jobid> -e
# check all job logs (no truncation)
kism l <jobid> -a
# check last N lines of job logs (default is 100)
kism l <jobid> -n 500
# monitor job GPU usage (snapshot)
kism monitor <jobid>
kism m <jobid> # short cut
# interactive cancel jobs (will prompt for confirmation)
kism cancel
kism c # shortcut