Skip to content

Commit

Permalink
Add missing #define checks under onnxruntime namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kleiti committed Apr 18, 2024
1 parent 0ef0c10 commit 4b630d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/onnxruntime/core/common/spin_pause.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

namespace onnxruntime {

#if defined(_M_AMD64) || defined(__x86_64__)
const bool tpause = CPUIDInfo::GetCPUIDInfo().HasTPAUSE();
const std::uint64_t spin_delay_cycles = 2000;
#endif

namespace concurrency {

Expand Down

0 comments on commit 4b630d0

Please sign in to comment.