-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
40 lines (29 loc) · 881 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
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
// cache line size on the machine used for profiling
#ifndef CACHE_LINESIZE
# define CACHE_LINESIZE 256
#endif
// cache line size of the target architecture (must be a power-of-two)
#define MEMBLOCKLEN 256
// Consistency checks?
#define DEBUG 0
// 2: Huge amount of debug output, 1: checks, 0: silent
#define VERBOSE 0
// Assertions and consistency check?
#if NDEBUG
# define RD_DEBUG 0
#else
# define RD_DEBUG 2
#endif
// 2: Huge amount of debug output, 1: checks, 0: silent
#define RD_VERBOSE 0
// Print only up to N-th marker in debug output
#define RD_PRINT_MARKER_MAX 2
// Do not account for zero distance accesses?
#define RD_DO_NOT_COUNT_ZERO_DISTANCE 0
#define MAX_THREADS 48
#if RD_VERBOSE
# define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
# define eprintf(...)
#endif