instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

Installation Error - CMAKE_CUDA_ARCHITECTURES must be valid if set

Open sp00ks-git opened this issue 3 years ago • 0 comments

On Linux Debian buster when trying to build with cmake i get the following error:

#:/opt/instant-ngp$ sudo cmake . -B build -- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 CMake Error at /usr/local/share/cmake-3.23/Modules/CMakeDetermineCUDACompiler.cmake:311 (message): CMAKE_CUDA_ARCHITECTURES must be valid if set. Call Stack (most recent call first): CMakeLists.txt:11 (project)

Ive tried adding the value to 'all' 'native' '1' but to no avail.

for example:

cmake . -B build -CMAKE_CUDA_ARCHITECTURES=native CMake Warning: Ignoring extra path from command line:

"CMAKE_CUDA_ARCHITECTURES=native"

CMake Error at /usr/local/share/cmake-3.23/Modules/CMakeDetermineCUDACompiler.cmake:311 (message): CMAKE_CUDA_ARCHITECTURES must be valid if set. Call Stack (most recent call first): CMakeLists.txt:11 (project)

Can't see this error via google or from the help pages.

Info

cmake - cmake version 3.23.3

:/opt/instant-ngp$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Jun__8_16:49:14_PDT_2022 Cuda compilation tools, release 11.7, V11.7.99 Build cuda_11.7.r11.7/compiler.31442593_0

nvidia-smi: ----------------------------------------------------------------------------+ | NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 | |-------------------------------+----------------------+----------------------

python 3.9.5

sp00ks-git avatar Aug 06 '22 17:08 sp00ks-git