Skip to content

Commit

Permalink
Update platform.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pacowong authored Oct 16, 2024
1 parent 9ab613a commit 03ba474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/core/mlas/lib/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,9 @@ MlasPlatformU8S8Overflow(

#endif

MLAS_THREAD_LOCAL size_t ThreadedBufSize = 0;
thread_local size_t ThreadedBufSize = 0;
#ifdef _MSC_VER
MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
thread_local std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
#else
MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
thread_local std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
#endif

0 comments on commit 03ba474

Please sign in to comment.