File: plot_all_benchmark.pro

package info (click to toggle)
gnudatalanguage 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,368 kB
  • sloc: cpp: 189,797; ansic: 46,721; sh: 677; python: 474; makefile: 146; xml: 69; f90: 28
file content (43 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;
; AC, August 18th 2017
;
; Design to be run in any interpretors (Default X11 plots)
; but GDL only if /SVG, due to SVG output
;
pro PLOT_ALL_BENCHMARK, svg=svg, test=test, path=path
;
ON_ERROR, 2
;
CHECK_SAVE_RESTORE
;
if KEYWORD_SET(svg) then begin
   if GDL_IDL_FL(/up) NE 'GDL' then MESSAGE, "SVG output only for GDL, sorry"
endif else begin
   ;; do we have the X11 (or Win) mode ON ??
   if ~CHECK_IF_DEVICE_IS_OK('PLOT_ALL_BENCHMARK', /force) then $
      MESSAGE, "X11 not ready/operational on this computer (see /SVG mode ;)"
endelse
;
; we do these "EXECUTE()" below to compile the plotting functions 
; which are inside the various associated benchmark codes ... 
;
a=EXECUTE('BENCH_FFT, /help')
a=EXECUTE('BENCH_MATRIX_INVERT, /help')
a=EXECUTE('BENCH_MATRIX_MULTIPLY, /help')
a=EXECUTE('BENCH_MEDIAN, /help')
;
if ~KEYWORD_set(svg) then WINDOW, 0
PLOT_BENCH_FFT, svg=svg, path=path
;
if ~KEYWORD_set(svg) then WINDOW, 1
PLOT_BENCH_MATRIX_INVERT, svg=svg, path=path
;
if ~KEYWORD_set(svg) then WINDOW, 2
PLOT_BENCH_MATRIX_MULTIPLY, svg=svg, path=path
;
if ~KEYWORD_set(svg) then WINDOW, 3
PLOT_BENCH_MEDIAN, svg=svg, path=path
;
if KEYWORD_SET(test) then STOP
;
end