mirror of
https://github.com/amd/blis.git
synced 2026-04-19 23:28:52 +00:00
Windows TLS with Microsoft compiler
We currently use clang compiler on Windows, so no problem with current builds. However, if we wanted to use Microsoft compiler, add different definition of BLIS_THREAD_LOCAL as __declspec(thread) AMD-Internal: [CPUPL-6958]
This commit is contained in:
@@ -62,6 +62,8 @@
|
||||
// for building BLIS is low.
|
||||
#if defined(__GNUC__) || defined(__clang__) || defined(__ICC) || defined(__IBMC__) || defined(__INTEL_LLVM_COMPILER)
|
||||
#define BLIS_THREAD_LOCAL __thread
|
||||
#elif defined(_MSC_VER) && _MSC_VER >= 1310
|
||||
#define BLIS_THREAD_LOCAL __declspec(thread)
|
||||
#else
|
||||
#define BLIS_THREAD_LOCAL
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user