This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
cluster:119 [2013/10/09 08:41] hmeij |
cluster:119 [2017/10/18 09:10] hmeij07 |
||
---|---|---|---|
Line 52: | Line 52: | ||
</ | </ | ||
- | With '' | + | With '' |
< | < | ||
Line 66: | Line 66: | ||
3 Tesla K20m 21 C 0 % | 3 Tesla K20m 21 C 0 % | ||
==================================================== | ==================================================== | ||
+ | |||
+ | [hmeij@sharptail sharptail]$ ssh n33 gpu-free | ||
+ | 1,3,0 | ||
+ | |||
+ | |||
</ | </ | ||
Line 440: | Line 445: | ||
exit $? | exit $? | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== elim code ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | # | ||
+ | |||
+ | while (1) { | ||
+ | |||
+ | $gpu = 0; | ||
+ | $log = ''; | ||
+ | if (-e "/ | ||
+ | $tmp = `/ | ||
+ | @tmp = split(/ | ||
+ | foreach $i (0..$#tmp) { | ||
+ | ($a, | ||
+ | if ( $f == 0 ) { $gpu = $gpu + 1; } | ||
+ | #print "$a $f $gpu\n"; | ||
+ | $log .= " | ||
+ | } | ||
+ | } | ||
+ | # nr_of_args name1 value1 | ||
+ | $string = "1 gpu $gpu"; | ||
+ | |||
+ | $h = `hostname`; chop($h); | ||
+ | $d = `date +%m/ | ||
+ | foreach $i (' | ||
+ | if ( " | ||
+ | `echo " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | # you need the \n to flush -hmeij | ||
+ | # you also need the space before the line feed -hmeij | ||
+ | print " | ||
+ | # or use | ||
+ | # | ||
+ | |||
+ | # smaller than specified in lsf.shared | ||
+ | sleep 10; | ||
+ | |||
+ | } | ||