我正在尝试在Windows 10上使用GTX1070,CUDA10.0,cudnn7.3.1和VS2017安装caffe
遵循本指南 https://binvec.me/archives/build_caffe_with_vs2017_in_windows
我已经修改了所有配置
但是当我尝试运行build_win.cmd
时,出现了CMAKE错误
[vcvarsall.bat] Environment initialized for: 'x64'
-- The C compiler identification is MSVC 19.15.26730.0
-- The CXX compiler identification is MSVC 19.15.26730.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: D:/Users/Ezio/Anaconda2/python.exe (found suitable version "2.7.15", minimum required is "2.7")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found GFlags: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found gflags (include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: gflags_shared)
-- Found Glog: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found glog (include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: glog)
-- Found Protobuf: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/bin/protoc.exe (found version "3.1.0")
-- Found PROTOBUF Compiler: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/bin/protoc.exe
-- Found LMDB: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found lmdb (include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: lmdb)
-- Found LevelDB: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found LevelDB (include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: leveldb)
-- Found ZLIB: optimized;C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlibd.lib (found version "1.2.8")
-- Found Snappy: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found Snappy (include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: snappy_static;optimized;C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/caffezlibd.lib)
-- CUDA detected: 10.0
-- Found cuDNN: ver. 7.3.1 found (include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib)
-- Added CUDA NVCC flags for: sm_61
-- OpenCV found (C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries)
-- Found OpenBLAS libraries: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/libopenblas.dll.a
-- Found OpenBLAS include: C:/Users/Ezio/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found PythonLibs: D:/Users/Ezio/Anaconda2/libs/python27.lib (found suitable version "2.7.15", minimum required is "2.7")
-- Found NumPy: D:/Users/Ezio/Anaconda2/lib/site-packages/numpy/core/include (found suitable version "1.15.1", minimum required is "1.7.1")
-- NumPy ver. 1.15.1 found (include: D:/Users/Ezio/Anaconda2/lib/site-packages/numpy/core/include)
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- python
-- Found Git: D:/Program Files/Git/cmd/git.exe (found version "2.19.0.windows.1")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-111-g509dae05-dirty
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe
-- Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /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 : 0
-- BUILD_python : 1
-- BUILD_matlab : 0
-- BUILD_docs :
-- CPU_ONLY : 0
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : 0
-- ALLOW_LMDB_NOLOCK : OFF
--
-- Dependencies:
-- BLAS : Yes (Open)
-- Boost : Yes (ver. 1.61)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.1.0)
-- lmdb : Yes (ver. 0.9.70)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.1)
-- OpenCV : Yes (ver. 3.1.0)
-- CUDA : Yes (ver. 10.0)
--
-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_61
-- cuDNN : Yes (ver. 7.3.1)
--
-- Python:
-- Interpreter : D:/Users/Ezio/Anaconda2/python.exe (ver. 2.7.15)
-- Libraries : D:/Users/Ezio/Anaconda2/libs/python27.lib (ver 2.7.15)
-- NumPy : D:/Users/Ezio/Anaconda2/lib/site-packages/numpy/core/include (ver 1.15.1)
--
-- Install:
-- Install path : E:/caffe/scripts/build/install
--
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
linked by target "caffe" in directory E:/caffe/src/caffe
-- Configuring incomplete, errors occurred!
See also "E:/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
See also "E:/caffe/scripts/build/CMakeFiles/CMakeError.log".
ERROR: Configure failed
虽然错误日志告诉我仅“缺少pthread.h
”
我确定所有依赖项都已下载并且可以通过脚本找到
你能帮我吗?