Skip to content

Commit

Permalink
Merge branch 'develop' into paco/ci_build_67bc9438d
Browse files Browse the repository at this point in the history
  • Loading branch information
pacowong committed Oct 16, 2024
2 parents 11a7090 + 03ba474 commit f0cc105
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 f0cc105

Please sign in to comment.