星期二, 5月 14, 2019

Cuda+Cudnn + open3.4+contrib3.4 + camke + VS2017 +Win10


Cuda+ Cudnn

  1. https://dotblogs.com.tw/cylcode/2018/09/20/163005
  2. CUDA下載:https://developer.nvidia.com/cuda-toolkit-archive
  3. cuDNN下載:https://developer.nvidia.com/rdp/cudnn-download
  4. visual studio下載https://my.visualstudio.com/Downloads/Featured
  5. env Path
  6. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64
    D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
  7. nvcc -V


opencv3.4+contrib3.4+cmake+VS2017+win10

Prepare:

  1. opencv3.4源码https://github.com/opencv/opencv/archive/3.4.0.zip 
  2. opencv_contrib3.4源码https://github.com/opencv/opencv_contrib/archive/3.4.0.zip 
  3. cmake https://cmake.org/download/ 
  4. visual studio 2017 
  5. win10
Cmake:
  • Configure check 
    • NVIDIA CUDA: YES (ver 10.1, CUFFT CUBLAS)
  • Generate
  • open project (Current Generator: Visual Studio 15 2017)
    • 用這個




沒有留言: