2
* Copyright (c) 2001 Matteo Frigo
3
* Copyright (c) 2001 Massachusetts Institute of Technology
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
/* $Id: bench.h,v 1.15 2006-02-25 02:25:48 athena Exp $ */
23
/* benchmark program definitions */
24
#include "bench-user.h"
26
extern double time_min;
27
extern int time_repeat;
29
extern void timer_init(double tmin, int repeat);
30
extern void bench_fft8(const float *ri, const float *ii, float *ro, float *io,
33
/* report functions */
34
extern void (*report)(const bench_problem *p, double *t, int st);
36
void report_mflops(const bench_problem *p, double *t, int st);
37
void report_time(const bench_problem *p, double *t, int st);
38
void report_benchmark(const bench_problem *p, double *t, int st);
39
void report_verbose(const bench_problem *p, double *t, int st);
41
void report_can_do(const char *param);
42
void report_info(const char *param);
43
void report_info_all(void);
45
extern int aligned_main(int argc, char *argv[]);
46
extern int bench_main(int argc, char *argv[]);
48
extern void speed(const char *param, int setup_only);
49
extern void accuracy(const char *param, int rounds, int impulse_rounds);
51
extern double mflops(const bench_problem *p, double t);
53
extern double bench_drand(void);
54
extern void bench_srand(int seed);
56
extern bench_problem *problem_parse(const char *desc);
58
extern void ovtpvt(const char *format, ...);
60
extern void fftaccuracy(int n, bench_complex *a, bench_complex *ffta,
61
int sign, double err[6]);
62
extern void fftaccuracy_done(void);
64
extern void caset(bench_complex *A, int n, bench_complex x);
65
extern void aset(bench_real *A, int n, bench_real x);