Skip to content

Commit

Permalink
Missing include for uint64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kleiti committed Nov 24, 2023
1 parent 6197eb6 commit dd853b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/onnxruntime/core/common/spin_pause.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include <xmmintrin.h>
#endif

#if defined(_M_AMD64) || defined(__x86_64__)
#include <cstdint>
#endif

namespace onnxruntime {

namespace concurrency {
Expand All @@ -25,7 +29,7 @@ inline void SpinPause() {

inline void SpinTPAUSE() {
#if defined(_M_AMD64) || defined(__x86_64__)
const uint64_t spin_delay_cycles = 2000;
const std::uint64_t spin_delay_cycles = 2000;
_tpause(0x0, __rdtsc() + spin_delay_cycles);
#endif
}
Expand Down

0 comments on commit dd853b0

Please sign in to comment.