Open JV-X opened 19 hours ago
I switched to the thirdparty/diff-gaussian-rasterization/diff-gaussian-rasterization-light/build/temp.linux-x86_64-cpython-37
folder, executed ninja -v
, and got the following output:
(droidsplat) hygx@hygx:~/code/DROID-Splat/thirdparty/diff-gaussian-rasterization/diff-gaussian-rasterization-light/build/temp.linux-x86_64-cpython-37$ ninja -v
ninja: error: '/mnt/data2/hujiarui/Code/accelerated_gau_slam/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu', needed by '/mnt/data2/hujiarui/Code/accelerated_gau_slam/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-37/cuda_rasterizer/backward.o', missing and no known rule to make it
Hi there! I sadly do not have much experience with some of the problems you might run into when using windows or WSL. That being said, you seem to already have problems with building the SLAM modules.
Can you post what gcc or g++ compiler version you are using here? Then what CUDA and PyTorch version did you use?
PS: I dont understand your second post. Our vanilla 3DGS version uses thirdparty/diff-gaussian-rasterization-w-pose as a dependency, what switch did you do? Your build also does not seem to fail because of the splatting modules.
thanks for your reply.
my gcc version: 9.4.0 CUDA version: 12.1 PyTorch version:2.1.2
This is the output I got from executing the following commands:
gcc -v
:
(droidsplat) hygx@hygx:~/code/DROID-Splat$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
g++ -v
:
(droidsplat) hygx@hygx:~/code/DROID-Splat$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.2' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-9QDOt0/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
python -c "import torch; print(torch.__version__)"
:
2.1.2
nvcc -V
:
(droidsplat) hygx@hygx:~/code/DROID-Splat$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Feb__7_19:32:13_PST_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0
Regarding the second point, I saw an error in the error log when executing ninja -v
, so I tried to switch to the folder where the "build.ninja" file existed and manually execute the command ninja -v
to see if an error would be reported.
Can you try to update your gcc? We at least know that the build works with version 12.3.0. It would be good to know, if the error persists then.
Note that with your CUDA version, you might need to change a file in your pytorch package, because of a problem with nvcc. See the comment in our README build section:
You might need to change 45 of torch/include/pybind11/cast.h
:
- return caster.operator typename make_caster<T>::template cast_op_type<T>();
+ return caster;
Alternatively you could of course switch to a higher version of CUDA
Hello, I tried to build the DROID-Splat environment in my WSL2 subsystem. When I executed the
python setup.py install
command, I got thesubprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
errorThe log is too long, so some parts are omitted,full log in here : log.log
key logs:
I tried running
ninja -v
manually and got the following error:any suggestions ?
thanks for your relply.