Debian Codegraph @

conf/groups.conf.d/slurm.conf.example

raw
1 # Additional ClusterShell group source config file
2 #
3 # Please see `man 5 groups.conf` for further details.
4 #
5
6 #
7 # SLURM partition bindings
8 #
9 [slurmpart,sp]
10 map: sinfo -h -o "%N" -p $GROUP
11 mapall: sinfo -h -o "%R:%N"
12 all: sinfo -h -o "%N"
13 list: sinfo -h -o "%R"
14 reverse: sinfo -h -N -o "%R" -n $NODE
15
16 #
17 # SLURM node-reservation bindings
18 #
19 [slurmresv,sr]
20 map: scontrol -o show reservation $GROUP | grep -Po 'Nodes=\K[^ ]+'
21 mapall: scontrol -o show reservation | sed -n 's/^ReservationName=\([^ :]*\) .* Nodes=\([^ ]*\).*/\1:\2/p'
22 all: scontrol -o show reservation | grep -Po 'Nodes=\K[^ ]+'
23 list: scontrol -o show reservation | grep -Po 'ReservationName=\K[^ ]+'
24 cache_time: 60
25
26 #
27 # SLURM state bindings
28 #
29 [slurmstate,st]
30 map: sinfo -h -o "%N" -t $GROUP
31 mapall: sinfo -h -o "%T:%N" | sed 's/[*~#!%$@+^-]*:/:/'
32 all: sinfo -h -o "%N"
33 list: sinfo -h -o "%T" | tr -d '*~#!%$@+^-'
34 reverse: sinfo -h -N -o "%T" -n $NODE | tr -d '*~#!%$@+^-'
35 cache_time: 60
36
37 #
38 # SLURM job bindings
39 #
40 [slurmjob,sj]
41 map: squeue -h -j $GROUP -o "%N"
42 mapall: squeue -h -o "%i:%N" -t R
43 list: squeue -h -o "%i" -t R
44 reverse: squeue -h -w $NODE -o "%i"
45 cache_time: 60
46
47 #
48 # SLURM user bindings for running jobs
49 #
50 [slurmuser,su]
51 map: squeue -h -u $GROUP -o "%N" -t R
52 mapall: squeue -h -o "%u:%N" -t R
53 list: squeue -h -o "%u" -t R
54 reverse: squeue -h -w $NODE -o "%u"
55 cache_time: 60
56
57 #
58 # SLURM account bindings for running jobs
59 #
60 [slurmaccount,sa]
61 map: squeue -h -A $GROUP -o "%N" -t R
62 mapall: squeue -h -o "%a:%N" -t R
63 list: squeue -h -o "%a" -t R
64 reverse: squeue -h -w $NODE -o "%a" 2>/dev/null || true
65 cache_time: 60
66
67 #
68 # SLURM QOS bindings for running jobs
69 #
70 [slurmqos,sq]
71 map: squeue -h -q $GROUP -o "%N" -t R
72 mapall: squeue -h -o "%q:%N" -t R
73 list: squeue -h -o "%q" -t R
74 reverse: squeue -h -w $NODE -o "%q" 2>/dev/null || true
75 cache_time: 60