Closed ZiyangYan closed 1 year ago
Can you please clone the repository and run “cmake . && make”? Please post the output here.
Can you please clone the repository and run “cmake . && make”? Please post the output here.
-- The CXX compiler identification is GNU 7.5.0 CMake Error at /media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:751 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
255
PATH=/usr/lib/nvidia-cuda-toolkit/bin:/media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/bin:/media/zyan/sandiskSSD/anaconda3/condabin:/usr/local/cuda-11.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
-DCUDA_DOUBLE_MATH_FUNCTIONS -DCUDACC -DNVCC -D"CUDACC_VER_BUILD=85" -D"CUDACC_VER_MINOR=1" -D"CUDACC_VER_MAJOR=9" -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" > "tmp/CMakeCUDACompilerId.cpp1.ii"
-ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "CMakeCUDACompilerId.fatbin.c" -tused -nvvmir-library "/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.10.bc" --gen_module_id_file --module_id_file_name "tmp/CMakeCUDACompilerId.module_id" --orig_src_file_name "CMakeCUDACompilerId.cu" --gen_c_file_name "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o "tmp/CMakeCUDACompilerId.ptx"
"tmp/CMakeCUDACompilerId.sm_30.cubin"
ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name'
Call Stack (most recent call first): /media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test) /media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
Can you please clone the repository and run “cmake . && make”? Please post the output here.
Do it need to finish the configuration of cmakelist and then try?
Something is wrong with your cuda installation. It also looks like you have multiple cudas installed? When installing nerfstudio, did tinycudann install without problems? What is the output of ncvv —version?
Something is wrong with your cuda installation. It also looks like you have multiple cudas installed? When installing nerfstudio, did tinycudann install without problems? What is the output of ncvv —version?
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Thu_Feb_10_18:23:41_PST_2022 Cuda compilation tools, release 11.6, V11.6.112 Build cuda_11.6.r11.6/compiler.30978841_0
Did tinycudann install without problems?
with torch == 1.12.1 I can install tinycudann without problem, with higher version torch, it will has problems, but now I use 1.12.1
Did tinycudann install without problems?
with torch == 1.12.1 I can install tinycudann without problem, with higher version torch, it will has problems, but now I use 1.12.1
How can you use torch 1.12 with cuda 11.6? Please make sure pytorch cuda version matches your installed cuda
How can you use torch 1.12 with cuda 11.6? Please make sure pytorch cuda version matches your installed cuda
I think torch 1.12 also support cuda 11.6?
Ok, I didn’t know. I have no idea what is wrong with your setup. I it is not too much hassle, can you use the dockerfile instead?
How can you use torch 1.12 with cuda 11.6? Please make sure pytorch cuda version matches your installed cuda
I create a clean env for nerfstudio with torch 1.13.1 and install the tiny-nn successfully, but when I install tetra-nerf, I has the same problem, I will try to use dockerfile, thanks
Ok, I didn’t know. I have no idea what is wrong with your setup. I it is not too much hassle, can you use the dockerfile instead?
Hi, I use " docker build -t tetra-nerf:latest --build-context optix=/home/zyan/Downloads/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64 ." to install image but failed.
The output is: [+] Building 15.1s (9/15) => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.48kB 0.0s => [internal] load metadata for docker.io/nvidia/cuda:11.6.1-devel-ubunt 4.5s => [context optix] load .dockerignore 0.0s => => transferring optix: 2B 0.0s => [context optix] load from client 0.0s => => transferring optix: 35.18kB 0.0s => [internal] load build context 0.0s => => transferring context: 3.69kB 0.0s => [stage-0 1/9] FROM docker.io/nvidia/cuda:11.6.1-devel-ubuntu18.04@sha 0.0s => CACHED [stage-0 2/9] COPY --from=optix . /home/zyan/Downloads/NVIDIA- 0.0s => ERROR [stage-0 3/9] RUN if [ ! -e /home/zyan/Downloads/NVIDIA-OptiX- 10.5s [stage-0 3/9] RUN if [ ! -e /home/zyan/Downloads/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64/include/optix.h ]; then echo "Could not find the OptiX library. Please install the Optix SDK and add the following argument to the buildx command: --build-context optix=/path/to/the/SDK"; exit 1; fi && apt-get update && apt-get install -y --no-install-recommends ca-certificates cmake git colmap ffmpeg python3 python3-pip python3-dev python-is-python3 libcgal-dev && rm -rf /var/lib/apt/lists/*:
Dockerfile:12 11 | COPY --from=optix . /home/zyan/Downloads/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64 12 | >>> RUN if [ ! -e /home/zyan/Downloads/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64/include/optix.h ]; then echo "Could not find the OptiX library. Please install the Optix SDK and add the following argument to the buildx command: --build-context optix=/path/to/the/SDK"; exit 1; fi && 13 | >>> apt-get update && apt-get install -y --no-install-recommends 14 | >>> ca-certificates 15 | >>> cmake 16 | >>> git 17 | >>> colmap 18 | >>> ffmpeg 19 | >>> python3 20 | >>> python3-pip 21 | >>> python3-dev 22 | >>> python-is-python3 23 | >>> libcgal-dev 24 | >>> && 25 | >>> rm -rf /var/lib/apt/lists/ 26 | error: failed to solve: process "/bin/sh -c if [ ! -e /home/zyan/Downloads/NVIDIA-OptiX-SDK-7.5.0-linux64-x86_64/include/optix.h ]; then echo "Could not find the OptiX library. Please install the Optix SDK and add the following argument to the buildx command: --build-context optix=/path/to/the/SDK"; exit 1; fi && apt-get update && apt-get install -y --no-install-recommends ca-certificates cmake git colmap ffmpeg python3 python3-pip python3-dev python-is-python3 libcgal-dev && rm -rf /var/lib/apt/lists/" did not complete successfully: exit code: 100
however, I have installed the optix is this path, what happen for it?
I believe the error is "E: Unable to locate package python-is-python3". I am not sure why the dockerfile compiles fine on my side.
I am trying now with disabled cache to see if something changed.
Ok, I tried again from scratch, and it worked. I don't understand why it does not work for you.
Please reopen if still experiencing issues.
Please reopen if still experiencing issues.
I asked my several colleagues to try again in different PC, including windows and different version ubuntu, they met the same problem like me.
Have you tried the newer docker image?
Also, did you modify the older dockerfile in any way?
Have you tried the newer docker image?
Not yet, I am so busy recently, I will try later, thank you for your response
No problem. I will close the issue for now (there have been a lot of changes since you last tried, and I cannot reproduce the error). If you experience any errors with the new image, please open a new issue (or reopen this one).
When I use pip install git+https://github.com/jkulhanek/tetra-nerf to install the method,
it raise, " raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-req-build-4gefgajf', '-DPYTHON_EXECUTABLE=/media/zyan/sandiskSSD/anaconda3/envs/nerfstudio/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DEXAMPLE_VERSION_INFO=0.1.1']' returned non-zero exit status 1. [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tetra-nerf Running setup.py clean for tetra-nerf Failed to build tetra-nerf ERROR: Could not build wheels for tetra-nerf, which is required to install pyproject.toml-based projects "
how to deal with it? my nerfstudio is work and the install is correct.