PandA-2024.02
3mm.h
Go to the documentation of this file.
1 
10 #ifndef _3MM_H
11 # define _3MM_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(NI) && !defined(NJ) && !defined(NK) && !defined(NL) && !defined(NM)
19 /* Define sample dataset sizes. */
20 # ifdef MINI_DATASET
21 # define NI 16
22 # define NJ 18
23 # define NK 20
24 # define NL 22
25 # define NM 24
26 # endif
27 
28 # ifdef SMALL_DATASET
29 # define NI 40
30 # define NJ 50
31 # define NK 60
32 # define NL 70
33 # define NM 80
34 # endif
35 
36 # ifdef MEDIUM_DATASET
37 # define NI 180
38 # define NJ 190
39 # define NK 200
40 # define NL 210
41 # define NM 220
42 # endif
43 
44 # ifdef LARGE_DATASET
45 # define NI 800
46 # define NJ 900
47 # define NK 1000
48 # define NL 1100
49 # define NM 1200
50 # endif
51 
52 # ifdef EXTRALARGE_DATASET
53 # define NI 1600
54 # define NJ 1800
55 # define NK 2000
56 # define NL 2200
57 # define NM 2400
58 # endif
59 
60 
61 #endif /* !(NI NJ NK NL NM) */
62 
63 # define _PB_NI POLYBENCH_LOOP_BOUND(NI,ni)
64 # define _PB_NJ POLYBENCH_LOOP_BOUND(NJ,nj)
65 # define _PB_NK POLYBENCH_LOOP_BOUND(NK,nk)
66 # define _PB_NL POLYBENCH_LOOP_BOUND(NL,nl)
67 # define _PB_NM POLYBENCH_LOOP_BOUND(NM,nm)
68 
69 
70 /* Default data type */
71 # if !defined(DATA_TYPE_IS_INT) && !defined(DATA_TYPE_IS_FLOAT) && !defined(DATA_TYPE_IS_DOUBLE)
72 # define DATA_TYPE_IS_DOUBLE
73 # endif
74 
75 #ifdef DATA_TYPE_IS_INT
76 # define DATA_TYPE int
77 # define DATA_PRINTF_MODIFIER "%d "
78 # define SCALAR_VAL(x) x
79 #endif
80 
81 #ifdef DATA_TYPE_IS_FLOAT
82 # define DATA_TYPE float
83 # define DATA_PRINTF_MODIFIER "%0.2f "
84 # define SCALAR_VAL(x) x##f
85 # define SQRT_FUN(x) sqrtf(x)
86 # define EXP_FUN(x) expf(x)
87 # define POW_FUN(x,y) powf(x,y)
88 # endif
89 
90 #ifdef DATA_TYPE_IS_DOUBLE
91 # define DATA_TYPE double
92 # define DATA_PRINTF_MODIFIER "%0.2lf "
93 # define SCALAR_VAL(x) x
94 # define SQRT_FUN(x) sqrt(x)
95 # define EXP_FUN(x) exp(x)
96 # define POW_FUN(x,y) pow(x,y)
97 # endif
98 
99 #endif /* !_3MM_H */

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