New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAKE_CUDA_ARCHITECTURES must be non-empty if set. #1142
Comments
Can you try again after updating to the latest commit? git pull origin master
git submodule update --recursive |
Same error:(
|
same |
Also have this same exact error after running I have all prereqs installed. Ubuntu version:
gcc version: cmake: nvidia-smi:
|
I had to delete the previous build, add the cuda paths in my bashrc, rebuild it and it worked. |
work, thk~ |
@tom-bu Can you please say exactly what you added to .bashrc? |
I have encountered this problem before when I was installing COLMAP. |
two steps to solve the problem:
|
Add your nvcc executable to PATH. In my environment, it is export PATH=$PATH:/usr/local/cuda/bin. |
Using Anaconda/Linux: I solved my problem as below: rm -rf build
conda install -c nvidia cuda-toolkit
cmake . -B build -DCMAKE_CUDA_COMPILER=$(which nvcc) |
You are my HERO. You are the best. Thank You Thank You. I'm crying ;;;;;;((((( THX THX |
Sorry for the basic question, but when I run the cmake command it tells me I need a build directory and I need the CMakeList.txt file in it. Am I correct to assume that after deleting the build directory, I need to use mkdir again and then move CMakeList.txt into that directory? |
export PATH="/usr/local/cuda/bin:$PATH" |
I deleted the |
Getting this error when trying to compile it on Ubuntu. Cuda is installed ( v 11.3), did everything according to the readme. What might be wrong?
Full error text:
CMake Error at /usr/share/cmake-3.24/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!
See also "/home/narvi/apps/instant-ngp/build/CMakeFiles/CMakeOutput.log".
See also "/home/narvi/apps/instant-ngp/build/CMakeFiles/CMakeError.log".
The text was updated successfully, but these errors were encountered: