We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CMake Error at cmake/modules/CUDA.cmake:30 (message): Cannot find CUDA, USE_CUDA=ON Call Stack (most recent call first): CMakeLists.txt:92 (include)
环境:linux cuda版本:11.6 nvcc正常,nvidia-smi正常
The text was updated successfully, but these errors were encountered:
出现此错误的原因是 CMake 无法找到 CUDA 工具包,即使 nvcc 与 nvidia-smi 可以正常运行,也不代表 CMake 已正确定位到 CUDA 的头文件和库
请尝试以下方法解决
export CUDA_HOME=/usr/local/cuda export PATH=$CUDA_HOME/bin:$PATH export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
Sorry, something went wrong.
参考 https://blog.csdn.net/bigbaojian/article/details/129642388,执行 apt install nvidia-cuda-toolkit
No branches or pull requests
CMake Error at cmake/modules/CUDA.cmake:30 (message):
Cannot find CUDA, USE_CUDA=ON
Call Stack (most recent call first):
CMakeLists.txt:92 (include)
环境:linux
cuda版本:11.6
nvcc正常,nvidia-smi正常
The text was updated successfully, but these errors were encountered: