File tree 6 files changed +5
-18
lines changed
6 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
D=$( cd ` dirname $0 ` && pwd)
4
4
5
- exec $D /dq-on-all gpu-free
5
+ exec $D /dq-on-all shell -pc gpu-free
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function disp {
13
13
exit
14
14
}
15
15
16
- $D /dq-on-all gpu-users | {
16
+ $D /dq-on-all shell -pc gpu-users | {
17
17
trap disp SIGINT
18
18
19
19
while read line; do
Original file line number Diff line number Diff line change @@ -11,15 +11,6 @@ D=$(cd `dirname $0` && pwd)
11
11
12
12
# DIR=$1
13
13
14
- function install_fix {
15
- SRC=$1 ; shift
16
- DST=$1 ; shift
17
- echo " #!$DIR /shell -p" > $SRC .fix
18
- tail -n +2 $SRC >> $SRC .fix
19
- install $SRC .fix $DST $@
20
- rm -f $SRC .fix
21
- }
22
-
23
14
install $D /dq-on-all $DIR /dq-on-all -D -m 0755
24
15
install $D /dq-submit $DIR /dq-submit -D -m 0755
25
16
install $D /dq-prepare $DIR /dq-prepare -D -m 0755
@@ -42,10 +33,6 @@ install $D/dq-users $DIR/dq-users -D -m 0755
42
33
install $D /dq-env.sh $DIR /dq-env.sh -D -m 0644
43
34
install $D /dq-env.csh $DIR /dq-env.csh -D -m 0644
44
35
install /bin/bash $DIR /shell -D -o root -g $GROUP -m 06550
45
- install /usr/bin/screen $DIR /screen -D -o root -g $GROUP -m 06750
46
36
install $D /scripts/helper-on-all $DIR /scripts/helper-on-all -D -m 0755
47
- install_fix $D /scripts/gpu-users $DIR /scripts/gpu-users -D -m 0755
48
- install_fix $D /scripts/gpu-free $DIR /scripts/gpu-free -D -m 0755
49
- install_fix $D /scripts/gpu-free-list $DIR /scripts/gpu-free-list -D -m 0755
50
37
51
38
chmod g+w $DIR
Original file line number Diff line number Diff line change 1
- #!shell -p
1
+ #! /bin/bash
2
2
3
3
h=$( hostname -s)
4
4
gpus=$( nvidia-smi -L | cut -f1 -d: | cut -f2 -d' ' )
Original file line number Diff line number Diff line change 1
- #!shell -p
1
+ #! /bin/bash
2
2
3
3
h=$( hostname -s)
4
4
gpus=$( nvidia-smi -L | cut -f1 -d: | cut -f2 -d' ' )
Original file line number Diff line number Diff line change 1
- #!shell -p
1
+ #! /bin/bash
2
2
3
3
h=$( hostname -s)
4
4
dump=$( lsof -n /dev/nvidia? 2> /dev/null | sed -r -e ' s/[ \t]+/ /g' | grep " CHR" )
You can’t perform that action at this time.
0 commit comments