You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enter in "which nvcc", I get "usr/local/cuda-12.6/bin/nvcc", which is where my nvcc is located. When I run "CUDAToolkit_ROOT=/usr/local/cuda-12.6 ./build.sh", I get an error like this:
`CMake Error at cmake/hypre.cmake:43 (enable_language):
The CMAKE_CUDA_COMPILER:
/usr/bin/nvcc
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:229 (add_hypre)`
I have tried "export CUDACXX=/usr/local/cuda-12.6/bin/nvcc" and then recompiling. I have tried "CUDAToolkit_ROOT=/usr/local/cuda-12.6/ CMAKE_CUDA_COMPILER=/usr/local/cuda-12.6/bin/nvcc ./build.sh".
The reason I need to the add the "CUDAToolkit_ROOT" flag is because CUDA won't compile without it. I am thinking I should use cuda toolkit v11.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I enter in "which nvcc", I get "usr/local/cuda-12.6/bin/nvcc", which is where my nvcc is located. When I run "CUDAToolkit_ROOT=/usr/local/cuda-12.6 ./build.sh", I get an error like this:
`CMake Error at cmake/hypre.cmake:43 (enable_language):
The CMAKE_CUDA_COMPILER:
/usr/bin/nvcc
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CUDACXX" or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:229 (add_hypre)`
I have tried "export CUDACXX=/usr/local/cuda-12.6/bin/nvcc" and then recompiling. I have tried "CUDAToolkit_ROOT=/usr/local/cuda-12.6/ CMAKE_CUDA_COMPILER=/usr/local/cuda-12.6/bin/nvcc ./build.sh".
The reason I need to the add the "CUDAToolkit_ROOT" flag is because CUDA won't compile without it. I am thinking I should use cuda toolkit v11.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions