This source file includes following definitions.
- agner_compiler_patch
- agner_cpu_patch
- mkl_serv_intel_cpu
- mkl_serv_intel_cpu_true
- mkl_serv_cpuhaspnr_true
- mkl_serv_cpuhaspnr
- mkl_serv_cpuhasnhm
- mkl_serv_cpuisbulldozer
- mkl_serv_cpuiszen
- mkl_serv_cpuisatomsse4_2
- mkl_serv_cpuisatomssse3
- mkl_serv_cpuisitbarcelona
- mkl_serv_cpuisskl
- mkl_serv_cpuisknm
- mkl_serv_cpuisclx
- mkl_serv_get_microarchitecture
- agner_mkl_patch
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
35
36
37 #include "dispatch.h"
38 #ifdef __DISPATCH_H_
39
40 # if defined( __INTEL_COMPILER ) || \
41 defined( __INTEL_CLANG_COMPILER ) || \
42 defined( __INTEL_LLVM_COMPILER ) || \
43 defined( INTEL_MKL_VERSION ) || \
44 defined( __INTEL_MKL__ )
45
46 void
47 agner_compiler_patch()
48 {
49 # if defined( __INTEL_COMPILER ) || \
50 defined( __INTEL_CLANG_COMPILER ) || \
51 defined( __INTEL_LLVM_COMPILER )
52 (void)agner_cpu_patch();
53 # endif
54
55
56
57 # if defined( INTEL_MKL_VERSION ) || \
58 defined( __INTEL_MKL__ )
59 (void)agner_mkl_patch();
60 # endif
61
62
63 }
64
65 void
66 agner_cpu_patch()
67 {
68 __intel_cpu_feature_indicator = 0;
69 __intel_cpu_feature_indicator_x = 0;
70 __intel_cpu_features_init_x();
71 __intel_cpu_feature_indicator = __intel_cpu_feature_indicator_x;
72 }
73
74 int
75 mkl_serv_intel_cpu()
76 {
77 return ( 1 );
78 }
79
80 int
81 mkl_serv_intel_cpu_true()
82 {
83 return ( 1 );
84 }
85
86 int
87 mkl_serv_cpuhaspnr_true()
88 {
89 return ( 1 );
90 }
91
92 int
93 mkl_serv_cpuhaspnr()
94 {
95 return ( 1 );
96 }
97
98 int
99 mkl_serv_cpuhasnhm()
100 {
101 return ( 1 );
102 }
103
104 # ifndef INTEL_MKL_DETECT_AMD
105 int
106 mkl_serv_cpuisbulldozer()
107 {
108 return ( 0 );
109 }
110
111 int
112 mkl_serv_cpuiszen()
113 {
114 return ( 0 );
115 }
116 # endif
117
118 int
119 mkl_serv_cpuisatomsse4_2()
120 {
121 return ( 0 );
122 }
123
124 int
125 mkl_serv_cpuisatomssse3()
126 {
127 return ( 0 );
128 }
129
130 int
131 mkl_serv_cpuisitbarcelona()
132 {
133 return ( 0 );
134 }
135
136 int
137 mkl_serv_cpuisskl()
138 {
139 return ( 0 );
140 }
141
142 int
143 mkl_serv_cpuisknm()
144 {
145 return ( 0 );
146 }
147
148 int
149 mkl_serv_cpuisclx()
150 {
151 return ( 0 );
152 }
153
154 int
155 mkl_serv_get_microarchitecture()
156 {
157 return ( 33 );
158 }
159
160 # if defined( INTEL_MKL_VERSION ) || \
161 defined( __INTEL_MKL__ )
162 void
163 agner_mkl_patch()
164 {
165 __intel_mkl_feature_indicator = 0;
166 __intel_mkl_feature_indicator_x = 0;
167 __intel_mkl_features_init_x();
168 __intel_mkl_feature_indicator = __intel_mkl_feature_indicator_x;
169 }
170 # endif
171
172
173 # endif
174
175
176
177
178
179
180 #endif