forked from FFTW/fftw3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbench.h
67 lines (52 loc) · 2.34 KB
/
bench.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Copyright (c) 2001 Matteo Frigo
* Copyright (c) 2001 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/* $Id: bench.h,v 1.7 2003-03-15 20:29:43 stevenj Exp $ */
/* benchmark program definitions */
#include "config.h"
#include "bench-user.h"
extern double time_min;
extern int time_repeat;
extern void timer_init(double tmin, int repeat);
/* report functions */
extern void (*report)(const struct problem *p, double *t, int st);
void report_mflops(const struct problem *p, double *t, int st);
void report_max_mflops(const struct problem *p, double *t, int st);
void report_avg_mflops(const struct problem *p, double *t, int st);
void report_time(const struct problem *p, double *t, int st);
void report_min_time(const struct problem *p, double *t, int st);
void report_avg_time(const struct problem *p, double *t, int st);
void report_benchmark(const struct problem *p, double *t, int st);
void report_can_do(const char *param);
void report_info(const char *param);
void report_info_all(void);
extern int bench_main(int argc, char *argv[]);
extern void speed(const char *param);
extern void accuracy(const char *param, int rounds);
extern double mflops(const struct problem *p, double t);
extern double bench_drand(void);
extern void bench_srand(int seed);
struct option; /* opaque */
extern char *make_short_options(const struct option *opt);
extern void usage(const char *progname, const struct option *opt);
extern struct problem *problem_parse(const char *desc);
extern void problem_destroy(struct problem *p);
extern void ovtpvt(const char *format, ...);
extern void fftaccuracy(int n, bench_complex *a, bench_complex *ffta,
int sign, double err[6]);