Skip to content

Commit 03ba474

Browse files
authored
Update platform.cpp
1 parent 9ab613a commit 03ba474

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnxruntime/core/mlas/lib/platform.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@ MlasPlatformU8S8Overflow(
677677

678678
#endif
679679

680-
MLAS_THREAD_LOCAL size_t ThreadedBufSize = 0;
680+
thread_local size_t ThreadedBufSize = 0;
681681
#ifdef _MSC_VER
682-
MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
682+
thread_local std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
683683
#else
684-
MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
684+
thread_local std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
685685
#endif

0 commit comments

Comments
 (0)