我使用 CMake-gui 3.8
制作项目 gadgetron
(https://github.com/gadgetron/gadgetron)。代码生成器为 "Eclipse CDT4-MinGW Makefiles"。单击 Configure
按钮会生成以下错误:
The program can't start because cudart64_80.dll is missing from your computer. Try reinstalling the program to fix this problem.
文件cudart64_80.dll
位于路径C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin中,并且该路径包含在系统变量Path
中。
遵循以下链接:libgmp-10.dll is missing和CMAKE libintl-8.dll is missing from your computer
我还附带了与cuda
相关的配置输出日志如下:
Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0 (found suitable version "8.0", minimum required is "5.5")
CUDA_TOOLKIT_INCLUDE = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/include
CUDA_CUDART_LIBRARY = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudart.lib
感谢您。
cudart64_80
复制到您正在尝试运行的可执行文件的位置。 - Robert Crovellafind_package(CUDA_advanced)
会定位到FindCUDA_advanced.cmake
文件。在FindCUDA_advanced.cmake
文件中,代码cuda_find_helper_file(cuda_compute_capability c) try_run(....
尝试执行cuda_compute_capability.c
文件。之后,COMPILE_RESULT_VAR
被设置为TRUE
,而RUN_RESULT_VAR
则被设置为FALIED_TO_RUN
。我将cudart64_80.dll
文件复制到了cuda_compute_capability.c
文件的同级目录下,但错误信息“您的计算机缺少 cudart64_80.dll 文件”仍然存在。 - Thara