File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 17
17
#include < map>
18
18
#include < string>
19
19
#include < sstream>
20
- #include < thread>
21
20
#include < stdio.h>
22
21
#include < string.h>
23
22
#include < clBLAS.h>
28
27
// #include <functor_selector.h>
29
28
#include " xgemm.h"
30
29
30
+ // #define GCC_VERSION (__GNUC__ * 10000 \
31
+ // + __GNUC_MINOR__ * 100 \
32
+ // + __GNUC_PATCHLEVEL__)
33
+
34
+ #ifdef _WIN32
35
+ // #include <thread>
36
+ #else
37
+ #include < pthread.h>
38
+ #endif
39
+
31
40
/* *****************************************************************************
32
41
* Row major -> column major
33
42
*****************************************************************************/
@@ -140,6 +149,7 @@ void makeGemmKernel(
140
149
#if defined( _WIN32 )
141
150
__declspec ( thread ) static kernel_map_t *kernel_map = 0 ;
142
151
#else
152
+ #include < pthread.h>
143
153
__thread static kernel_map_t *kernel_map = 0 ;
144
154
#endif
145
155
if (!kernel_map) {
You can’t perform that action at this time.
0 commit comments