2017-02-10 234 views
2

我使用CMake-gui 3.8来制作项目gadgetronhttps://github.com/gadgetron/gadgetron)。代码生成器是“Eclipse CDT4-MinGW Makefiles”。该Configure按钮点击产生误差cudart64_80.dll丢失

The program can't start because cudart64_80.dll is missing from your computer. Try reinstalling the program to fix this problem. 

位置C处的文件cudart64_80.dll是:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ 8.0 \ bin和这个路径包括在系统变量Path

其次链接: libgmp-10.dll is missingCMAKE libintl-8.dll is missing from your computer

我也提cuda相关Confiugre输出以下日志:

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 

感谢。

+0

尝试将'cudart64_80'复制到您尝试运行的可执行文件的位置。 –

+0

我的理解是,语句'find_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

回答

2

我可以通过创建批处理文件来执行cmake-gui.exe,并将路径设置为包含cudart64_80.dll的文件夹的位置来解决问题。感谢评论。

@echo off 
set path=C:\Program Files\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;E:\IMRI\Software\doxygen-1.8.12.windows.x64.bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin; 
"C:\Program Files\CMake\bin\cmake-gui.exe"