Open JiaminHuuu opened 3 months ago
I found it is the problem about glmpackage. I tried to install glm manually, and it worked.
I found it is the problem about glmpackage. I tried to install glm manually, and it worked.
Hi @wang-zm18 is there any command available to install glm?
Hi, @xianrui-luo. For Ubuntu, you can try:
sudo apt install libglm-dev
Issue Description
I am attempting to build the
diff-gaussian-rasterization
package on my Linux system, but I am encountering several errors related to CUDA version mismatches and C++ standard library issues. Below are the details of my setup and the errors I am experiencing.The environment I used was wsl2 ubuntu.
I tried to install this by using pip install .
Error Details
Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [102 lines of output] running bdist_wheel running build running build_py running build_ext /home/hanami/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py:388: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.7). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization._C' extension Emitting ninja build file /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] /usr/bin/nvcc -I/home/hanami/.local/lib/python3.10/site-packages/torch/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/TH -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /mnt/e/hujiamin1998/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/mnt/e/hujiamin1998/diff-gaussian-rasterization/third_party/glm/ -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 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/cuda_rasterizer/rasterizer_impl.o /usr/bin/nvcc -I/home/hanami/.local/lib/python3.10/site-packages/torch/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/TH -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /mnt/e/hujiamin1998/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/mnt/e/hujiamin1998/diff-gaussian-rasterization/third_party/glm/ -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 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ [2/2] /usr/bin/nvcc -I/home/hanami/.local/lib/python3.10/site-packages/torch/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/TH -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /mnt/e/hujiamin1998/diff-gaussian-rasterization/rasterize_points.cu -o /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/rasterize_points.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/mnt/e/hujiamin1998/diff-gaussian-rasterization/third_party/glm/ -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 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/rasterize_points.o /usr/bin/nvcc -I/home/hanami/.local/lib/python3.10/site-packages/torch/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/TH -I/home/hanami/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/include/python3.10 -c -c /mnt/e/hujiamin1998/diff-gaussian-rasterization/rasterize_points.cu -o /mnt/e/hujiamin1998/diff-gaussian-rasterization/build/temp.linux-x86_64-3.10/rasterize_points.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/mnt/e/hujiamin1998/diff-gaussian-rasterization/third_party/glm/ -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 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 /home/hanami/.local/lib/python3.10/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided,>::operator==(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=size_t, one_sided=false, =0]"
(61): here
instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, >::operator!=(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=size_t, one_sided=false, =0]"
/home/hanami/.local/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h(77): here
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization