This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:119 [2013/10/09 08:41] hmeij |
cluster:119 [2016/02/15 08:54] hmeij [Submitting GPU Jobs] |
||
---|---|---|---|
Line 52: | Line 52: | ||
</ | </ | ||
- | With '' | + | With '' |
< | < | ||
Line 440: | Line 440: | ||
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; | ||
+ | |||
+ | } | ||