gaussian-splatting
gaussian-splatting copied to clipboard
Questions on Installation of simple_knn
pip install submodules/simple-knn/
Then errors occur:
Processing ./submodules/simple-knn Preparing metadata (setup.py) ... done Building wheels for collected packages: simple-knn Building wheel for simple-knn (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [80 lines of output]
/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/cuda/init.py:118: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 803: system has unsupported display driver / cuda driver combination (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
return torch._C._cuda_getDeviceCount() > 0
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-11.8'
running bdist_wheel
/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/utils/cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_ext
/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/utils/cpp_extension.py:428: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'simple_knn._C' extension
creating build/temp.linux-x86_64-cpython-311
gcc -pthread -B /home/vincent/ProgramFiles/miniconda3/envs/3dgs/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/vincent/ProgramFiles/miniconda3/envs/3dgs/include -fPIC -O2 -isystem /home/vincent/ProgramFiles/miniconda3/envs/3dgs/include -fPIC -I/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/include -I/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/include/TH -I/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/vincent/ProgramFiles/miniconda3/envs/3dgs/include/python3.11 -c ext.cpp -o build/temp.linux-x86_64-cpython-311/ext.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/utils/cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(
/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/cuda/init.py:619: UserWarning: Can't initialize NVML
warnings.warn("Can't initialize NVML")
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for simple-knn Running setup.py clean for simple-knn Failed to build simple-knn ERROR: Could not build wheels for simple-knn, which is required to install pyproject.toml-based projects
Here is my environment: RTX 4090, cudatoolkit 11.8.0, python=3.11.8, torch==2.2.2+cu118,torchaudio==2.2.2+cu118, torchvision==0.17.2+cu118
Does anyone know how to solve this problem?
File "/home/vincent/ProgramFiles/miniconda3/envs/3dgs/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1987, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range
[end of output]
I have tried different version combinations of python&pytorch, but it doesn't work. "diff-gaussian-rasterization" can be installed successfully, but "simple-knn" can't, always with the error "arch_list[-1] += '+PTX' ", "IndexError: list index out of range"
I have this problem too. I have simple_kNN instaled but the script seems to look for simple_knn
I have this problem too, can't solve it yet
Sorry for the delay. I solved this problem just by reboot the computer. I don’t know why but it works. Maybe you can try this
Get Outlook for iOShttps://aka.ms/o0ukef
From: Noob-PeNguiN @.> Sent: Sunday, April 28, 2024 4:22:08 PM To: graphdeco-inria/gaussian-splatting @.> Cc: yiwei-vincent-li @.>; Author @.> Subject: Re: [graphdeco-inria/gaussian-splatting] Questions on Installation of simple_knn (Issue #771)
I have this problem too, can't solve it yet
— Reply to this email directly, view it on GitHubhttps://github.com/graphdeco-inria/gaussian-splatting/issues/771#issuecomment-2081388503, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCNDKQKFNWULE62JHR36UVTY7SWTBAVCNFSM6AAAAABGXB4QSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGM4DQNJQGM. You are receiving this because you authored the thread.Message ID: @.***>