Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.3/libbench2/bench.h @ 10:37bf6b4a2645
Add FFTW3
| author | Chris Cannam | 
|---|---|
| date | Wed, 20 Mar 2013 15:35:50 +0000 | 
| parents | |
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 9:c0fb53affa76 | 10:37bf6b4a2645 | 
|---|---|
| 1 /* | |
| 2 * Copyright (c) 2001 Matteo Frigo | |
| 3 * Copyright (c) 2001 Massachusetts Institute of Technology | |
| 4 * | |
| 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. | |
| 9 * | |
| 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. | |
| 14 * | |
| 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 18 * | |
| 19 */ | |
| 20 | |
| 21 | |
| 22 /* benchmark program definitions */ | |
| 23 #include "bench-user.h" | |
| 24 | |
| 25 extern double time_min; | |
| 26 extern int time_repeat; | |
| 27 | |
| 28 extern void timer_init(double tmin, int repeat); | |
| 29 | |
| 30 /* report functions */ | |
| 31 extern void (*report)(const bench_problem *p, double *t, int st); | |
| 32 | |
| 33 void report_mflops(const bench_problem *p, double *t, int st); | |
| 34 void report_time(const bench_problem *p, double *t, int st); | |
| 35 void report_benchmark(const bench_problem *p, double *t, int st); | |
| 36 void report_verbose(const bench_problem *p, double *t, int st); | |
| 37 | |
| 38 void report_can_do(const char *param); | |
| 39 void report_info(const char *param); | |
| 40 void report_info_all(void); | |
| 41 | |
| 42 extern int aligned_main(int argc, char *argv[]); | |
| 43 extern int bench_main(int argc, char *argv[]); | |
| 44 | |
| 45 extern void speed(const char *param, int setup_only); | |
| 46 extern void accuracy(const char *param, int rounds, int impulse_rounds); | |
| 47 | |
| 48 extern double mflops(const bench_problem *p, double t); | |
| 49 | |
| 50 extern double bench_drand(void); | |
| 51 extern void bench_srand(int seed); | |
| 52 | |
| 53 extern bench_problem *problem_parse(const char *desc); | |
| 54 | |
| 55 extern void ovtpvt(const char *format, ...); | |
| 56 extern void ovtpvt_err(const char *format, ...); | |
| 57 | |
| 58 extern void fftaccuracy(int n, bench_complex *a, bench_complex *ffta, | |
| 59 int sign, double err[6]); | |
| 60 extern void fftaccuracy_done(void); | |
| 61 | |
| 62 extern void caset(bench_complex *A, int n, bench_complex x); | |
| 63 extern void aset(bench_real *A, int n, bench_real x); | 
