-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.h
29 lines (21 loc) · 905 Bytes
/
config.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
/* processor specific configs */
#define HAS_E64 (__riscv_v_elen >= 64)
#define HAS_F16 0
/* the maximum number of bytes to allocate, minimum of 4096 */
#define MAX_MEM (1024*1024*32)
/* the byte count for the next run */
#define NEXT(c) (c + c/7 + 3)
/* minimum number of repeats, to sample median from */
#define MIN_REPEATS 10
/* maxium number of repeats, executed until more than STOP_TIME has elapsed */
#define MAX_REPEATS 64
/* stop repeats early afer this many cycles have elapsed */
#define STOP_CYCLES (1024*1024*500)
/* validate against reference implementation on the first repetition */
#define VALIDATE 1
/* custom scaling factors for benchmarks, these are used to make sure each
* benchmark approximately takes the same amount of time. */
#define SCALE_mandelbrot(N) ((N)/10)
#define SCALE_mergelines(N) ((N)/10)
/* benchmark specific configurations */
#define mandelbrot_ITER 100