Skip to content

Failed to install torch-points-kernels  #103

@VikasSargar777

Description

@VikasSargar777

During installation of torch-points-kernels using this command pip install torch-points-kernels==0.7.0, I will faced the error for build wheels

Error :-
-->
Building wheel for torch-points-kernels (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [738 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\chamfer_dist.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\cluster.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\cubic_feature_sampling.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\gridding.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\knn.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\metrics.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels\torchpoints.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
copying torch_points_kernels_init_.py -> build\lib.win-amd64-cpython-38\torch_points_kernels
running build_ext
C:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'torch_points_kernels.points_cuda' extension
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\cuda
creating build\temp.win-amd64-cpython-38\Release\cuda\src
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icuda/include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\TH -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0;\include" -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpcuda/src\ball_query.cpp /Fobuild\temp.win-amd64-cpython-38\Release\cuda/src\ball_query.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9002 : ignoring unknown option '-O3'
ball_query.cpp

  C:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: 'HAVE_SNPRINTF': macro redefinition
  C:\ProgramData\miniconda3\envs\WIN_PCAIST\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF'
  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc" -c cuda/src\ball_query_gpu.cu -o build\temp.win-amd64-cpython-38\Release\cuda/src\ball_query_gpu.obj -Icuda/include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\TH -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0;\include" -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\include -IC:\ProgramData\miniconda3\envs\WIN_PCAIST\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use-local-env
  nvcc fatal   : Unsupported gpu architecture 'compute_86'
  error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torch-points-kernels
Running setup.py clean for torch-points-kernels
Failed to build torch-points-kernels
ERROR: Could not build wheels for torch-points-kernels, which is required to install pyproject.toml-based projects

-->

This the output shown on the console during installation, Please guide me how to solve this type of error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions