caffe编译 error及解决方案
编译环境:Windows + VS2013 + CUDA 8.0
问题一:Error 73 error MSB4062: The “NuGetPackageOverlay” task could not be loaded from the assembly D:\OpenSource\NugetPackages\OpenCV.2.4.10\build\native\private\coapp.NuGetNativeMSBuildTasks.dll. Could not load file or assembly ‘file:///D:\OpenSource\NugetPackages\OpenCV.2.4.10\build\native\private\coapp.NuGetNativeMSBuildTasks.dll’ or one of its dependencies. 系统找不到指定的文件。 Confirm that the
问题解决:‘系统找不到指定的文件’ 看起来像是路径问题,若检查路径发现没有问题,此处就是cudnn版本的问题。该caffe之前是编译成功的,但因安装tensorflow将cudnn版本改为v6了,重新下载cudnn v5.1版本,此类问题不再报错(cudnn v5测试不能解决以上问题)。
But, 因某原因重新编译时,该问题又又出现了,解决方法:clean+Rebuild
再改caffe源码之后重新编译以上方法都不行了,发现以管理员身份运行VS 或 cmd才是正解。
问题二:Error 8544 error MSB3073: The command “”\windows\scripts\BinplaceCudaDependenciies.cmd” “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin” “” false true “D:\OpenSource\..\Build\x64\Debug\“ :VCEnd”已退出,代码为 1。
问题解决:在使用cudnn加速的情况下,即
根据BinPlaceCudaDependencies.cmd中
if %USE_CUDNN% == true (
echo BinplaceCudaDependencies : Copy cudnn*.dll to output.
if "%CUDNN_PATH%" == "" (
copy /y "%CUDA_TOOLKIT_BIN_DIR%\cudnn*.dll" "%OUTPUT_DIR%"
) else (
copy /y "%CUDNN_PATH%\cuda\bin\cudnn*.dll" "%OUTPUT_DIR%"
)
) else (
echo BinplaceCudaDependencies : cuDNN isn't enabled.
)
还没有评论,来说两句吧...