dlib GPU加速歷程

背景ide

            VS2017 + CUDA10.1學習


問題1ui

打開解決方案C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1\1_Utilities\deviceQuery,運行異常
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1\1_Utilities\deviceQuery\deviceQuery_vs2017.vcxproj(41,5):
error MSB4019: 未找到導入的項目「D:\vs2017dev\ide\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.1.props」。
請確認 <Import> 聲明中的路徑正確,且磁盤上存在該文件。人工智能

解決 從新使用cuda_10.1.243_win10_network.exe安裝get


問題2cmd

CMake dlib解決方案異常it

*****************************************************************************************************************
*** CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA.
*** The output of the failed CUDA test compile is shown below:
***   Change Dir: F:/人工智能學習/人臉識別/dlib-master/build/dlib/cuda_test_build
   ***  
   ***   Run Build Command:"D:\vs2017dev\ide/MSBuild/15.0/Bin/MSBuild.exe" "ALL_BUILD.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
   ***   用於 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3
   ***   版權全部(C) Microsoft Corporation。保留全部權利。
   ***  
   ***   生成啓動時間爲 2019/11/22 10:15:57。
   ***   節點 1 上的項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ALL_BUILD.vcxproj」(默認目標)。
   ***   項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ALL_BUILD.vcxproj」(1)正在節點 1 上生成「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ZERO_CHECK.vcxproj」(2) (默認目標)。
   ***   PrepareForBuild:
   ***     正在建立目錄「x64\Debug\ZERO_CHECK\」。
   ***     正在建立目錄「x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\」。
   ***   InitializeBuildStatus:
   ***     正在建立「x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild」,由於已指定「AlwaysCreate」。
   ***   CustomBuild:
   ***     Checking Build System
   ***     CMake does not need to re-run because F:/浜哄伐鏅鴻兘瀛︿範/浜鴻劯璇嗗埆/dlib-master/build/dlib/cuda_test_build/CMakeFiles/generate.stamp is up-to-date.
   ***   FinalizeBuildStatus:
   ***     正在刪除文件「x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild」。
   ***     正在對「x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate」執行 Touch 任務。
   ***   已完成生成項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ZERO_CHECK.vcxproj」(默認目標)的操做。
   ***   項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ALL_BUILD.vcxproj」(1)正在節點 1 上生成「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\cuda_test.vcxproj」(3) (默認目標)。
   ***   PrepareForBuild:
   ***     正在建立目錄「cuda_test.dir\Debug\」。
   ***     正在建立目錄「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\Debug\」。
   ***     正在建立目錄「cuda_test.dir\Debug\cuda_test.tlog\」。
   ***   InitializeBuildStatus:
   ***     正在建立「cuda_test.dir\Debug\cuda_test.tlog\unsuccessfulbuild」,由於已指定「AlwaysCreate」。
   ***   ComputeCustomBuildOutput:
   ***     正在建立目錄「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\CMakeFiles\cuda_test.dir\Debug\」。
   ***   CustomBuild:
   ***     Building NVCC (Device) object CMakeFiles/cuda_test.dir/Debug/cuda_test_generated_cuda_test.cu.obj
   ***     CMake Error at cuda_test_generated_cuda_test.cu.obj.Debug.cmake:215 (message):
   ***       Error generating
   ***       F:/浜哄伐鏅鴻兘瀛︿範/浜鴻劯璇嗗埆/dlib-master/build/dlib/cuda_test_build/CMakeFiles/cuda_test.dir//Debug/cuda_test_generated_cuda_test.cu.obj
   ***    
   ***    
   ***   D:\vs2017dev\ide\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: 「cmd.exe」已退出,代碼爲 1。 [F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\cuda_test.vcxproj]
   ***   已完成生成項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\cuda_test.vcxproj」(默認目標)的操做 - 失敗。
   ***   已完成生成項目「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ALL_BUILD.vcxproj」(默認目標)的操做 - 失敗。
   ***  
   ***   生成失敗。
   ***  
   ***   「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\ALL_BUILD.vcxproj」(默認目標) (1) ->
   ***   「F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\cuda_test.vcxproj」(默認目標) (3) ->
   ***   (CustomBuild 目標) ->
   ***     D:\vs2017dev\ide\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: 「cmd.exe」已退出,代碼爲 1。 [F:\人工智能學習\人臉識別\dlib-master\build\dlib\cuda_test_build\cuda_test.vcxproj]
   ***  
   ***       0 個警告
   ***       1 個錯誤
   ***  
   ***   已用時間 00:00:01.86
   ***  
*****************************************************************************************************************
Disabling CUDA support for dlib.  DLIB WILL NOT USE CUDAio

相關文章
相關標籤/搜索