Simple terminal UI for slurm. Credit to Norman Müller.
pip install git+https://github.com/ShenhanQian/slurmui.git
slurmui -c <cluster name>
Optional arguments:
-i
update interval in seconds, 5 by default. Set to 0 to disable.
Note
Due to the difference between slurm settings, the program can fail when parsing results from sinfo
. Therefore, you need to specify the cluster name for special cases.
Cluster | Argument | Comment |
---|---|---|
TUM CVG | Works with the default setting. | |
TUM VCG | -c tum_vcg |
Format of GRES is different. |
LRZ AI | -c lrz_ai |
Need to filter out irrelavant partitions. |
For other clusters, you can first try running slurmui
without arguments. If failed, you will need to add if-else sentences for your special cases.
-
Search in the repository for places where
sinfo
is called with the output format specifies like-O 'Partition:25,NodeHost,Gres:80,GresUsed:80,StateCompact,FreeMem,CPUsState'
. The width for some items(s) may not be enough, causing a problem to splitting the string into columns.