Compiling with Vulkan

I have run git submodule update --init --recursive, any ideas?

yalihupokn@zoqu-endiman:~/Repositories/TV/pytorch$ USE_VULKAN=1 USE_VULKAN_SHADERC_RUNTIME=1 USE_VULKAN_WRAPPER=0 python setup.py install
WARNING: Redirecting 'python setup.py install' to 'pip install . -v --no-build-isolation', for more info see https://github.com/pytorch/pytorch/issues/152276
Using pip 26.0.1 from /usr/lib/python3.14/site-packages/pip (python 3.14)
Defaulting to user installation because normal site-packages is not writeable
Processing ./.
  Running command Preparing metadata (pyproject.toml)
  Building wheel torch-2.14.0a0+gitb4d3913
  Found cmake (/usr/bin/cmake) version: 4.3.0 (>=3.27)
  /usr/lib/python3.14/site-packages/setuptools/dist.py:483: SetuptoolsDeprecationWarning: Cannot find any files for the given pattern.
  !!

          ********************************************************************************
          Pattern 'third_party/**/COPYING.BSD' did not match any files.

          By 2027-Feb-18, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
          ********************************************************************************

  !!
    for path in sorted(cls._find_pattern(pattern, enforce_match))
  running dist_info
  creating /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info
  writing /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/dependency_links.txt
  writing entry points to /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/entry_points.txt
  writing requirements to /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/requires.txt
  writing top-level names to /tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no directories found matching 'ios'
  no previously-included directories found matching 'third_party/nccl/pkg/debian'
  no previously-included directories found matching 'third_party/opentelemetry-cpp/third_party/prometheus-cpp/cmake/project-import-*'
  no previously-included directories found matching 'torchgen/packaged'
  no previously-included directories found matching '**/.gitlab'
  warning: no previously-included files matching '*.o' found anywhere in distribution
  warning: no previously-included files matching '*.obj' found anywhere in distribution
  warning: no previously-included files matching '*.so' found anywhere in distribution
  warning: no previously-included files matching '*.dylib' found anywhere in distribution
  warning: no previously-included files matching '*.a' found anywhere in distribution
  warning: no previously-included files matching '*.swp' found anywhere in distribution
  warning: no previously-included files matching '*~' found anywhere in distribution
  adding license file 'LICENSE'
  adding license file 'third_party/FP16/LICENSE'
  adding license file 'third_party/FXdiv/LICENSE'
  adding license file 'third_party/NNPACK/LICENSE'
  adding license file 'third_party/XNNPACK/LICENSE'
  adding license file 'third_party/aiter/3rdparty/composable_kernel/LICENSE'
  adding license file 'third_party/aiter/LICENSE'
  adding license file 'third_party/benchmark/LICENSE'
  adding license file 'third_party/composable_kernel/LICENSE'
  adding license file 'third_party/cpp-httplib/LICENSE'
  adding license file 'third_party/cpuinfo/LICENSE'
  adding license file 'third_party/cpuinfo/deps/clog/LICENSE'
  adding license file 'third_party/fbgemm/LICENSE'
  adding license file 'third_party/fbgemm/external/composable_kernel/LICENSE'
  adding license file 'third_party/fbgemm/external/cpuinfo/LICENSE'
  adding license file 'third_party/fbgemm/external/cpuinfo/deps/clog/LICENSE'
  adding license file 'third_party/fbgemm/external/googletest/LICENSE'
  adding license file 'third_party/fbgemm/fbgemm_gpu/experimental/hstu/LICENSE'
  adding license file 'third_party/fbgemm/fbgemm_gpu/src/quantize_ops/mx/LICENSE'
  adding license file 'third_party/fbgemm/fbgemm_gpu/test/quantize/mx/LICENSE'
  adding license file 'third_party/flash-attention/LICENSE'
  adding license file 'third_party/flash-attention/csrc/composable_kernel/LICENSE'
  adding license file 'third_party/flash-attention/flash_attn/cute/LICENSE'
  adding license file 'third_party/flash-attention/third_party/aiter/3rdparty/composable_kernel/LICENSE'
  adding license file 'third_party/flash-attention/third_party/aiter/LICENSE'
  adding license file 'third_party/flatbuffers/LICENSE'
  adding license file 'third_party/flatbuffers/dart/LICENSE'
  adding license file 'third_party/flatbuffers/swift/LICENSE'
  adding license file 'third_party/fmt/LICENSE'
  adding license file 'third_party/gemmlowp/gemmlowp/LICENSE'
  adding license file 'third_party/googletest/LICENSE'
  adding license file 'third_party/kineto/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/cpr/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/cpr/test/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/googletest/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/json/third_party/cpplint/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/pfs/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/3rdparty/civetweb/examples/rest/cJSON/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/3rdparty/googletest/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/3rdparty/googletest/googlemock/scripts/generator/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/fmt/LICENSE'
  adding license file 'third_party/kineto/libkineto/third_party/googletest/LICENSE'
  adding license file 'third_party/mimalloc/LICENSE'
  adding license file 'third_party/miniz-3.0.2/LICENSE'
  adding license file 'third_party/mslk/LICENSE'
  adding license file 'third_party/mslk/external/composable_kernel/LICENSE'
  adding license file 'third_party/mslk/external/googletest/LICENSE'
  adding license file 'third_party/mslk/mslk/attention/flash_attn/LICENSE'
  adding license file 'third_party/onnx/LICENSE'
  adding license file 'third_party/onnx/third_party/pybind11/LICENSE'
  adding license file 'third_party/protobuf/LICENSE'
  adding license file 'third_party/protobuf/third_party/benchmark/LICENSE'
  adding license file 'third_party/protobuf/third_party/googletest/LICENSE'
  adding license file 'third_party/protobuf/third_party/googletest/googlemock/LICENSE'
  adding license file 'third_party/protobuf/third_party/googletest/googlemock/scripts/generator/LICENSE'
  adding license file 'third_party/protobuf/third_party/googletest/googletest/LICENSE'
  adding license file 'third_party/psimd/LICENSE'
  adding license file 'third_party/pthreadpool/LICENSE'
  adding license file 'third_party/pybind11/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/googletest/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/googletest/googlemock/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/googletest/googlemock/scripts/generator/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/googletest/googletest/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/libnop/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/libuv/LICENSE'
  adding license file 'third_party/tensorpipe/third_party/pybind11/LICENSE'
  adding license file 'third_party/NVTX/LICENSE.txt'
  adding license file 'third_party/NVTX/docs/LICENSE.txt'
  adding license file 'third_party/NVTX/python/LICENSE.txt'
  adding license file 'third_party/VulkanMemoryAllocator/LICENSE.txt'
  adding license file 'third_party/cudnn_frontend/LICENSE.txt'
  adding license file 'third_party/cutlass/LICENSE.txt'
  adding license file 'third_party/cutlass/python/LICENSE.txt'
  adding license file 'third_party/fbgemm/external/cutlass/LICENSE.txt'
  adding license file 'third_party/fbgemm/external/cutlass/python/LICENSE.txt'
  adding license file 'third_party/fbgemm/external/hipify_torch/LICENSE.txt'
  adding license file 'third_party/flash-attention/csrc/cutlass/LICENSE.txt'
  adding license file 'third_party/flash-attention/csrc/cutlass/python/LICENSE.txt'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/testing/python3/libs_3rdparty/colorama/LICENSE.txt'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/json/test/thirdparty/doctest/LICENSE.txt'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/3rdparty/civetweb/src/third_party/duktape-1.5.2/LICENSE.txt'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/prometheus-cpp/3rdparty/civetweb/src/third_party/duktape-1.8.0/LICENSE.txt'
  adding license file 'third_party/llvm-openmp/LICENSE.txt'
  adding license file 'third_party/mslk/external/cutlass/LICENSE.txt'
  adding license file 'third_party/mslk/external/cutlass/python/LICENSE.txt'
  adding license file 'third_party/mslk/external/hipify_torch/LICENSE.txt'
  adding license file 'third_party/sleef/LICENSE.txt'
  adding license file 'third_party/tensorpipe/LICENSE.txt'
  adding license file 'third_party/kineto/libkineto/third_party/dynolog/third_party/fmt/LICENSE.rst'
  adding license file 'third_party/python-peachpy/LICENSE.rst'
  writing manifest file '/tmp/pip-modern-metadata-nodjt_qg/torch.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-nodjt_qg/torch-2.14.0a0+gitb4d3913.dist-info'
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in /usr/lib/python3.14/site-packages (from torch==2.14.0a0+gitb4d3913) (3.15.4)
Requirement already satisfied: typing-extensions>=4.10.0 in /usr/lib/python3.14/site-packages (from torch==2.14.0a0+gitb4d3913) (4.15.0)
Requirement already satisfied: setuptools<82 in /usr/lib/python3.14/site-packages (from torch==2.14.0a0+gitb4d3913) (80.10.2)
Collecting sympy>=1.13.3 (from torch==2.14.0a0+gitb4d3913)
  Obtaining dependency information for sympy>=1.13.3 from https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl.metadata
  Using cached sympy-1.14.0-py3-none-any.whl.metadata (12 kB)
Collecting networkx>=2.5.1 (from torch==2.14.0a0+gitb4d3913)
  Obtaining dependency information for networkx>=2.5.1 from https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl.metadata
  Using cached networkx-3.6.1-py3-none-any.whl.metadata (6.8 kB)
Requirement already satisfied: jinja2 in /home/yalihupokn/.local/lib/python3.14/site-packages (from torch==2.14.0a0+gitb4d3913) (3.1.6)
Collecting fsspec>=0.8.5 (from torch==2.14.0a0+gitb4d3913)
  Obtaining dependency information for fsspec>=0.8.5 from https://files.pythonhosted.org/packages/d5/0c/043d5e551459da400957a1395e0febbf771446ff34291afcbe3d8be2a279/fsspec-2026.4.0-py3-none-any.whl.metadata
  Using cached fsspec-2026.4.0-py3-none-any.whl.metadata (10 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch==2.14.0a0+gitb4d3913)
  Obtaining dependency information for mpmath<1.4,>=1.1.0 from https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl.metadata
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /home/yalihupokn/.local/lib/python3.14/site-packages (from jinja2->torch==2.14.0a0+gitb4d3913) (3.0.3)
Using cached fsspec-2026.4.0-py3-none-any.whl (203 kB)
Using cached networkx-3.6.1-py3-none-any.whl (2.1 MB)
Using cached sympy-1.14.0-py3-none-any.whl (6.3 MB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Building wheels for collected packages: torch
  Running command Building wheel for torch (pyproject.toml)
  Building wheel torch-2.14.0a0+gitb4d3913
  Found cmake (/usr/bin/cmake) version: 4.3.0 (>=3.27)
  -- Building version 2.14.0a0+gitb4d3913
  cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_INSTALL_PREFIX=/home/yalihupokn/Repositories/TV/pytorch/torch -DPython_EXECUTABLE=/usr/bin/python -DPython_NumPy_INCLUDE_DIR=/usr/lib64/python3.14/site-packages/numpy/_core/include -DTORCH_BUILD_VERSION=2.14.0a0+gitb4d3913 -DUSE_NUMPY=True /home/yalihupokn/Repositories/TV/pytorch
  CMake Deprecation Warning at CMakeLists.txt:3 (cmake_policy):
    The OLD behavior for policy CMP0126 will be removed from a future version
    of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all
    policies are deprecated and that a policy should be set to OLD only under
    specific short-term circumstances.  Projects should be ported to the NEW
    behavior and not rely on setting a policy to OLD.


  CMake Deprecation Warning at CMakeLists.txt:5 (cmake_policy):
    The OLD behavior for policy CMP0146 will be removed from a future version
    of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all
    policies are deprecated and that a policy should be set to OLD only under
    specific short-term circumstances.  Projects should be ported to the NEW
    behavior and not rely on setting a policy to OLD.


  CMake Error at cmake/PreBuildSteps.cmake:74 (message):
    Submodule /home/yalihupokn/Repositories/TV/pytorch/third_party/gloo appears
    incomplete (none of
    CMakeLists.txt;Makefile;setup.py;LICENSE;LICENSE.md;LICENSE.txt found).

    Please run: git submodule update --init --recursive
  Call Stack (most recent call first):
    CMakeLists.txt:30 (include)


  -- Configuring incomplete, errors occurred!
  error: subprocess-exited-with-error
  
  × Building wheel for torch (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> No available output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python /usr/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpzq8bpzeb
  cwd: /home/yalihupokn/Repositories/TV/pytorch
  Building wheel for torch (pyproject.toml) ... error
  ERROR: Failed building wheel for torch
Failed to build torch
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> torch
yalihupokn@zoqu-endiman:~/Repositories/TV/pytorch$ 

Hi,

I don’t think Vulkan was ever supported as a torch backend. It was only use for the now mostly deleted torch mobile.

For mobile, ExecuTorch, the new version of torch mobile, has a fully working Vulkan backend.