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:
Smyth, Edward
2025-08-04 15:09:25 +01:00
committed by GitHub
parent b8aa5c2894
commit 09592bf4f3

View File

@@ -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