The CUDA Toolkit installs the CUDA driver and tools needed to create, build and run a CUDA application as well as libraries, header files, CUDA samples source code, and other resources
driver install to C:/Program Files/NVIDIA Corporation and C:/ProgramData/NVIDIA Corporation
tookit install to C:/Program Files/NVIDIA GPU Computing Toolkit,which contains headers,libs,tools for compiling CUDA applications. C:/ProgramData/NVIDIA GPU Computing Toolkit contains cuda plugins for Visual Studio.
verify
1 2
cd C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.2\bin\win64\Release ./deviceQuery.exe
cudnn
extract cudnn-8.0-windows10-x64-v5.0-ga.zip and copy include,liband bin to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
# BOOST config set(BOOST_ROOT "C:/Boost/") set(BOOST_INCLUDEDIR ${BOOST_ROOT}/include/boost-1_64 CACHE PATH "") set(BOOST_LIBRARYDIR ${BOOST_ROOT}/lib CACHE PATH "") set(Boost_USE_MULTITHREADED ON CACHE BOOL "") set(Boost_USE_STATIC_LIBS ON CACHE BOOL "") set(Boost_USE_STATIC_RUNTIME OFF CACHE BOOL "")
edit caffe-windows/cmake/Dependencies.cmake
1 2
set(Boost_USE_STATIC_LIBS ON) find_package(Boost 1.64 REQUIRED COMPONENTS system thread filesystem)
Tips: (1) we use C:\Boost\ 1.64 to replace caffe dependencies C:\Users\zunli\.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\ 1.61, because we have compile PCL 1.8.1 with Boost 1.64 static. (2) we use caffe C:\Users\zunli\.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\x64\vc14\lib to replace C:/Program Files/opencv. (opencv3.1 <====opencv3.4)
Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.15063. Boost version: 1.64.0 Found the following Boost libraries: system thread filesystem chrono date_time atomic Found gflags (include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: gflags_shared) Found glog (include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: glog) Found PROTOBUF Compiler: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/bin/protoc.exe Found lmdb (include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: lmdb) Found LevelDB (include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: leveldb) Found Snappy (include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: snappy_static;optimized;C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlibd.lib) CUDA detected: 8.0 Found cuDNN: ver. 5.0.5 found (include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudnn.lib) Added CUDA NVCC flags for: sm_61 OpenCV found (C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries) Found OpenBLAS libraries: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/libopenblas.dll.a Found OpenBLAS include: C:/Users/zunli/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include NumPy ver. 1.11.3 found (include: C:/Python27/lib/site-packages/numpy/core/include) Boost version: 1.64.0 Found the following Boost libraries: python
******************* Caffe Configuration Summary ******************* General: Version : 1.0.0 Git : unknown System : Windows C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /MP /DWIN32 /D_WINDOWS /W3 /GR /EHsc Debug CXX flags : /MDd /Zi /Ob0 /Od /RTC1 /DWIN32 /D_WINDOWS /W3 /GR /EHsc Build type : Release
BUILD_SHARED_LIBS : OFF BUILD_python : ON BUILD_matlab : OFF BUILD_docs : CPU_ONLY : OFF USE_OPENCV : ON USE_LEVELDB : ON USE_LMDB : ON USE_NCCL : OFF ALLOW_LMDB_NOLOCK : OFF
# Boost if(MSVC) # use static boost on windows set(Boost_USE_STATIC_LIBS ON) # else() # use release boost on linux set(Boost_USE_STATIC_LIBS OFF) endif(MSVC)
set(Boost_USE_MULTITHREAD ON) # Find Boost package 1.64 (caffe also use Boost 1.64) find_package(Boost 1.64 REQUIRED COMPONENTS serialization date_time system filesystem thread timer math_tr1)