针对“cmake couldn't find cuda library root”的问题,可以按照以下步骤进行排查和解决: 1. 检查CUDA是否已经正确安装 首先,确保你的系统上已经正确安装了CUDA。你可以通过以下命令来检查CUDA是否安装成功: bash nvcc --version 如果系统返回了CUDA编译器的版本信息,说明CUDA已经安装成功。 2. 确认CMAKE的版本是否...
gjmulderchanged the titleCouldn't find CUDA library root.on installationJul 9, 2023 Copy link Author vadi2commentedJul 9, 2023• edited Thanks a lot for the assistance! I've set it up and added cuda to the PATH: vadi@barbar:~$ which nvcc /usr/bin/nvcc vadi@barbar:~$ echo $PATH...
(Target_OS STREQUAL Windows) set (CMAKE_CUDA_COMPILER "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/bin/nvcc.exe") else() set (CMAKE_CUDA_COMPILER /usr/local/cuda/bin/nvcc) endif() set (CMAKE_CUDA_STANDARD 14) project (sim Fortran C CXX CUDA) find_package(OpenMP ...
(Target_OS STREQUAL Windows) set (CMAKE_CUDA_COMPILER "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/bin/nvcc.exe") else() set (CMAKE_CUDA_COMPILER /usr/local/cuda/bin/nvcc) endif() set (CMAKE_CUDA_STANDARD 14) project (sim Fortran C CXX CUDA) find_package(OpenMP ...