File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,15 @@ static struct PyMethodDef methods[] = {
23
23
{NULL , NULL , 0 , NULL }
24
24
};
25
25
26
- static inline void _set_mkl_ilp64 () {
27
- #ifdef USING_MKL_RT
28
- int i = mkl_set_interface_layer (MKL_INTERFACE_ILP64 );
26
+ #if defined(_MSC_VER ) && (_MSC_VER <= 1500 )
27
+ #define MKL_SERVICE_INLINE
28
+ #else
29
+ #define MKL_SERVICE_INLINE inline
29
30
#endif
30
- return ;
31
- }
32
31
33
- static inline void _set_mkl_lp64 () {
34
- #ifdef USING_MKL_RT
35
- int i = mkl_set_interface_layer (MKL_INTERFACE_LP64 );
36
- #endif
37
- return ;
38
- }
32
+ static MKL_SERVICE_INLINE void _set_mkl_ilp64 ();
33
+ static MKL_SERVICE_INLINE void _set_mkl_lp64 ();
34
+ static MKL_SERVICE_INLINE void _set_mkl_interface ();
39
35
40
36
static void _preload_threading_layer () {
41
37
#if FORCE_PRELOADING
@@ -112,7 +108,21 @@ static void _preload_threading_layer() {
112
108
return ;
113
109
}
114
110
115
- static inline void _set_mkl_interface () {
111
+ static MKL_SERVICE_INLINE void _set_mkl_ilp64 () {
112
+ #ifdef USING_MKL_RT
113
+ int i = mkl_set_interface_layer (MKL_INTERFACE_ILP64 );
114
+ #endif
115
+ return ;
116
+ }
117
+
118
+ static MKL_SERVICE_INLINE void _set_mkl_lp64 () {
119
+ #ifdef USING_MKL_RT
120
+ int i = mkl_set_interface_layer (MKL_INTERFACE_LP64 );
121
+ #endif
122
+ return ;
123
+ }
124
+
125
+ static MKL_SERVICE_INLINE void _set_mkl_interface () {
116
126
_set_mkl_lp64 ();
117
127
_preload_threading_layer ();
118
128
}
You can’t perform that action at this time.
0 commit comments