ToniRV / NeRF-SLAM

NeRF-SLAM: Real-Time Dense Monocular SLAM with Neural Radiance Fields. https://arxiv.org/abs/2210.13641 + Sigma-Fusion: Probabilistic Volumetric Fusion for Dense Monocular SLAM https://arxiv.org/abs/2210.01276
BSD 2-Clause "Simplified" License
1.14k stars 139 forks source link

MAKE_CUDA_ARCHITECTURES must be non-empty if set. #54

Open Buddies-as-you-know opened 11 months ago

Buddies-as-you-know commented 11 months ago

Getting this error when trying to compile it on Ubuntu. Cuda is installed ( v 11.7), did everything according to the readme. What might be wrong?

cmake ./thirdparty/instant-ngp -B build_ngp

Full error text:

CMake Error at /usr/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:277 (message): CMAKE_CUDA_ARCHITECTURES must be non-empty if set. Call Stack (most recent call first): CMakeLists.txt:11 (project)

-- Configuring incomplete, errors occurred!

LyndzP commented 11 months ago

set CMakeLists.txt to this lines:

set(CMAKE_CUDA_ARCHITECTURES 60 61 62 70 72 75 86)
set(CMAKE_CUDA_COMPILER /usr/local/cuda-11.7/bin/nvcc)