tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

The CUDA compiler identification is unknown

Open xu-jiayou opened this issue 3 years ago • 5 comments

The log tell me that ": fatal error: /usr/local/cuda/bin/../targets/x86_64-linux/include/stdc-predef.h: permission denied." `sudo cmake . -B build -DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.3/bin/nvcc [sudo] ycf 的密码: -- The CUDA compiler identification is unknown -- Check for working CUDA compiler: /usr/local/cuda-11.3/bin/nvcc CMake Error in /home/ycf/tiny-cuda-nn/build/CMakeFiles/CMakeTmp/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "cmTC_069f6".

CMake Error in /home/ycf/tiny-cuda-nn/build/CMakeFiles/CMakeTmp/CMakeLists.txt: CUDA_ARCHITECTURES is empty for target "cmTC_069f6".

CMake Error at /usr/local/share/cmake-3.21/Modules/CMakeTestCUDACompiler.cmake:43 (try_compile): Failed to generate test project build system. Call Stack (most recent call first): CMakeLists.txt:25 (project)

-- Configuring incomplete, errors occurred! See also "/home/ycf/tiny-cuda-nn/build/CMakeFiles/CMakeOutput.log". See also "/home/ycf/tiny-cuda-nn/build/CMakeFiles/CMakeError.log". ` Can you help me? Thank you very much.

xu-jiayou avatar Apr 02 '23 07:04 xu-jiayou

Did you add --recursive flag when cloning the repo?

ljjTYJR avatar Aug 19 '23 16:08 ljjTYJR

Hello! I have encountered exactly the same problem. May I ask how you resolved it in the end

luoyun7123 avatar Aug 30 '23 07:08 luoyun7123

Did you add --recursive flag when cloning the repo?

Have you solved?

rexainn avatar Jan 11 '24 14:01 rexainn

Hello! I have encountered exactly the same problem. May I ask how you resolved it in the end

Have you solved?

rexainn avatar Jan 11 '24 14:01 rexainn

This works for me.

cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_CUDA_COMPILER='/usr/local/cuda/bin/nvcc" 

hbb1 avatar Mar 13 '24 11:03 hbb1