PandA-2024.02
gesummv.h
Go to the documentation of this file.
1 
10 #ifndef _GESUMMV_H
11 # define _GESUMMV_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(N)
19 /* Define sample dataset sizes. */
20 # ifdef MINI_DATASET
21 # define N 30
22 # endif
23 
24 # ifdef SMALL_DATASET
25 # define N 90
26 # endif
27 
28 # ifdef MEDIUM_DATASET
29 # define N 250
30 # endif
31 
32 # ifdef LARGE_DATASET
33 # define N 1300
34 # endif
35 
36 # ifdef EXTRALARGE_DATASET
37 # define N 2800
38 # endif
39 
40 
41 #endif /* !(N) */
42 
43 # define _PB_N POLYBENCH_LOOP_BOUND(N,n)
44 
45 
46 /* Default data type */
47 # if !defined(DATA_TYPE_IS_INT) && !defined(DATA_TYPE_IS_FLOAT) && !defined(DATA_TYPE_IS_DOUBLE)
48 # define DATA_TYPE_IS_DOUBLE
49 # endif
50 
51 #ifdef DATA_TYPE_IS_INT
52 # define DATA_TYPE int
53 # define DATA_PRINTF_MODIFIER "%d "
54 # define SCALAR_VAL(x) x
55 #endif
56 
57 #ifdef DATA_TYPE_IS_FLOAT
58 # define DATA_TYPE float
59 # define DATA_PRINTF_MODIFIER "%0.2f "
60 # define SCALAR_VAL(x) x##f
61 # define SQRT_FUN(x) sqrtf(x)
62 # define EXP_FUN(x) expf(x)
63 # define POW_FUN(x,y) powf(x,y)
64 # endif
65 
66 #ifdef DATA_TYPE_IS_DOUBLE
67 # define DATA_TYPE double
68 # define DATA_PRINTF_MODIFIER "%0.2lf "
69 # define SCALAR_VAL(x) x
70 # define SQRT_FUN(x) sqrt(x)
71 # define EXP_FUN(x) exp(x)
72 # define POW_FUN(x,y) pow(x,y)
73 # endif
74 
75 #endif /* !_GESUMMV_H */

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