File: benchmarking.h

package info (click to toggle)
libm4rie 20150908-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,520 kB
  • sloc: sh: 11,430; ansic: 9,873; makefile: 100
file content (37 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (4)
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
#ifndef BENCHMARKETING_H
#define BENCHMARKETING_H

#include <stdint.h>

/*
 * Command line options. See benchmarking.h for documentation.
 */
extern int bench_quiet;
extern int bench_dump;
extern int bench_minimum;
extern int bench_maximum;
extern unsigned long long bench_maxtime;
extern double bench_accuracy;
extern int bench_confidence_index;
extern char const* progname;
extern uint64_t bench_count;

unsigned long long walltime(unsigned long long t0);

int global_options(int* argcp, char*** argvp);
void bench_print_global_options(FILE*);

int run_bench(
    int (*f)(void* params, unsigned long long* data, int *data_len),
    void* params,
    unsigned long long* data,
    int data_len);

#ifdef HAVE_LIBPAPI
extern int papi_events[];
extern int papi_array_len;
char* papi_event_name(int event);
#endif

#define __M4RIE_OMEGA 2.80735492205760
#endif //BENCHMARKETING_H