#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include namespace at::xpu { // Forward-declares at::xpu::LevelZero struct LevelZero; namespace detail { // extern declaration defines no storage; clang-tidy 21 false positive // NOLINTNEXTLINE(bugprone-dynamic-static-initializers) extern LevelZero lazyLevelZero; } // namespace detail } // namespace at::xpu #else #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined." #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)