def verify_ninja_availability():
    r"""
    Raises ``RuntimeError`` if `ninja <https://ninja-build.org/>`_ build system is not
    available on the system, does nothing otherwise.
    """
    if not is_ninja_available():
        raise RuntimeError("Ninja is required to load C++ extensions")

    Raises ``RuntimeError`` if `ninja <https://ninja-build.org/>`_ build system is not
    available on the system, does nothing otherwise.
    
intel_extension_for_pytorch/xpu/cpp_extension.py