-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
35 lines (27 loc) · 1.28 KB
/
constants.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
#ifndef CONSTANTS_H_
#define CONSTANTS_H_
const double RESOLUTION_DEFAULT = 2.0; /* secs (normally 2.0) */
const int RANDOM_SEED = 101010;
/* default: small (cache-contained) problem sizes */
const int FFT_SIZE = 1024; /* must be a power of two */
const int SOR_SIZE =100; /* NxN grid */
const int SPARSE_SIZE_M = 1000;
const int SPARSE_SIZE_nz = 5000;
const int LU_SIZE = 100;
/* large (out-of-cache) problem sizes */
const int LG_FFT_SIZE = 1048576; /* must be a power of two */
const int LG_SOR_SIZE =1000; /* NxN grid */
const int LG_SPARSE_SIZE_M = 100000;
const int LG_SPARSE_SIZE_nz =1000000;
const int LG_LU_SIZE = 1000;
/* tiny problem sizes (used to mainly to preload network classes */
/* for applet, so that network download times */
/* are factored out of benchmark.) */
/* */
const int TINY_FFT_SIZE = 16; /* must be a power of two */
const int TINY_SOR_SIZE =10; /* NxN grid */
const int TINY_SPARSE_SIZE_M = 10;
const int TINY_SPARSE_SIZE_N = 10;
const int TINY_SPARSE_SIZE_nz = 50;
const int TINY_LU_SIZE = 10;
#endif