遇到报错
Compile ngp报错 需要安装cuda toolkit
$ sudo apt update $ sudo apt install nvidia-cuda-toolkit
解决
cmake ./thirdparty/instant-ngp -B build_ngp
CMake Error in CMakeLists.txt: No known features for CXX compiler "GNU" version 11.4.0.
Just deleting ./build worked to solve this error for me
解决
遇到报错
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
|
nvcc --version
不行,在pytorch官网升级了版本,应该是cuda11.5与gcc11版本不兼容
升级到cuda 11.8
CUDA Toolkit 11.8 Downloads | NVIDIA Developer
不行
应该是也已经安装了,但是指定的版本不对
接下来指定版本
whereis nvidia-cuda-toolkit
可以看到,nvcc版本是11.5,并没有改变,于是重新从官网安装cuda11.8
CUDA Toolkit 11.8 Downloads | NVIDIA Developer
Please make sure that
- PATH includes /usr/local/cuda-11.8/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-11.8/lib64,
- or, add /usr/local/cuda-11.8/lib64 to /etc/ld.so.conf