PandA-2024.02
syrk.h
Go to the documentation of this file.
1 
10 #ifndef _SYRK_H
11 # define _SYRK_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(M) && !defined(N)
19 /* Define sample dataset sizes. */
20 # ifdef MINI_DATASET
21 # define M 20
22 # define N 30
23 # endif
24 
25 # ifdef SMALL_DATASET
26 # define M 60
27 # define N 80
28 # endif
29 
30 # ifdef MEDIUM_DATASET
31 # define M 200
32 # define N 240
33 # endif
34 
35 # ifdef LARGE_DATASET
36 # define M 1000
37 # define N 1200
38 # endif
39 
40 # ifdef EXTRALARGE_DATASET
41 # define M 2000
42 # define N 2600
43 # endif
44 
45 
46 #endif /* !(M N) */
47 
48 # define _PB_M POLYBENCH_LOOP_BOUND(M,m)
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 /* !_SYRK_H */

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