PandA-2024.02
jacobi-1d.h
Go to the documentation of this file.
1 
10 #ifndef _JACOBI_1D_H
11 # define _JACOBI_1D_H
12 
13 /* Default to LARGE_DATASET. */
14 # if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(MEDIUM_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)
15 # define LARGE_DATASET
16 # endif
17 
18 # if !defined(TSTEPS) && !defined(N)
19 /* Define sample dataset sizes. */
20 # ifdef MINI_DATASET
21 # define TSTEPS 20
22 # define N 30
23 # endif
24 
25 # ifdef SMALL_DATASET
26 # define TSTEPS 40
27 # define N 120
28 # endif
29 
30 # ifdef MEDIUM_DATASET
31 # define TSTEPS 100
32 # define N 400
33 # endif
34 
35 # ifdef LARGE_DATASET
36 # define TSTEPS 500
37 # define N 2000
38 # endif
39 
40 # ifdef EXTRALARGE_DATASET
41 # define TSTEPS 1000
42 # define N 4000
43 # endif
44 
45 
46 #endif /* !(TSTEPS N) */
47 
48 # define _PB_TSTEPS POLYBENCH_LOOP_BOUND(TSTEPS,tsteps)
49 # define _PB_N POLYBENCH_LOOP_BOUND(N,n)
50 
51 
52 /* Default data type */
53 # if !defined(DATA_TYPE_IS_INT) && !defined(DATA_TYPE_IS_FLOAT) && !defined(DATA_TYPE_IS_DOUBLE)
54 # define DATA_TYPE_IS_DOUBLE
55 # endif
56 
57 #ifdef DATA_TYPE_IS_INT
58 # define DATA_TYPE int
59 # define DATA_PRINTF_MODIFIER "%d "
60 #endif
61 
62 #ifdef DATA_TYPE_IS_FLOAT
63 # define DATA_TYPE float
64 # define DATA_PRINTF_MODIFIER "%0.2f "
65 # define SCALAR_VAL(x) x##f
66 # define SQRT_FUN(x) sqrtf(x)
67 # define EXP_FUN(x) expf(x)
68 # define POW_FUN(x,y) powf(x,y)
69 # endif
70 
71 #ifdef DATA_TYPE_IS_DOUBLE
72 # define DATA_TYPE double
73 # define DATA_PRINTF_MODIFIER "%0.2lf "
74 # define SCALAR_VAL(x) x
75 # define SQRT_FUN(x) sqrt(x)
76 # define EXP_FUN(x) exp(x)
77 # define POW_FUN(x,y) pow(x,y)
78 # endif
79 
80 #endif /* !_JACOBI_1D_H */

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13