#include namespace c10::impl { std::atomic GPUTrace::gpuTraceState{nullptr}; bool GPUTrace::haveState{false}; void GPUTrace::set_trace(const PyInterpreter* trace) { static bool once_flag [[maybe_unused]] = [&]() { gpuTraceState.store(trace, std::memory_order_release); haveState = true; return true; }(); } } // namespace c10::impl