Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion onnxruntime/core/common/spin_pause.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void SpinPause() {
static const bool has_tpause = CPUIDInfo::GetCPUIDInfo().HasTPAUSE();
static constexpr uint64_t tpause_spin_delay_cycles = 1000;
if (has_tpause) {
#if defined(_WIN32)
#if defined(_WIN32) || defined(__clang__)
_tpause(0x0, __rdtsc() + tpause_spin_delay_cycles);
#elif defined(__linux__)
__builtin_ia32_tpause(0x0, __rdtsc() + tpause_spin_delay_cycles);
Expand Down
Loading