#include namespace c10 { namespace impl { std::atomic device_guard_impl_registry[static_cast(DeviceType::COMPILE_TIME_MAX_DEVICE_TYPES)]; DeviceGuardImplRegistrar::DeviceGuardImplRegistrar(DeviceType type, const DeviceGuardImplInterface* impl) { device_guard_impl_registry[static_cast(type)].store(impl); } }} // namespace c10::impl