参考:
1.https://software.intel.com/zh-cn/articles/installation-and-configuration-of-bvlc-caffe-under-windows-the-caffe-learning-notes-part1
1.https://software.intel.com/zh-cn/articles/installation-configuration-and-enhancement-of-clcaffe-based-on-intel-hd-graphics-acceleration-under-windows-the-caffe-learning-notes-part2
一、自己使用的环境
1.win10+vs2015
2.Anaconda2-5.2.0-Windows-x86_64
3.cmake-3.9.3-win64-x64
4.Git-2.18.0-64-bit
5.intel_sdk_for_opencl_2017_7.0.0.2567,最新的应该都可以
二、编译过程中可能遇到的问题:
1.clopen需要指定cpu=0
2.案例中提供的下载caffe方式是错误的,错误如下:
git clone https://github.com/01org/caffe.git
cd caffe
git checkout inference-optimize
git pull
此方式下载到的是非windows版本,需要单独下载inference-optimize,inference-optimize支持windows。
3.参数设置
set BUILD_PYTHON=1
set BUILD_PYTHON_LAYER=1set USE_INTEL_SPATIAL=1
set USE_GREENTEA=1
set USE_ISAAC=1
set RUN_TESTS=0
set RUN_INSTALL=1
set PYTHON_VERSION=2
call scripts\build_win.cmd
4.编译结束后一定要做如下操作,否则会报错。
Please be noted that, after the building finished successfully, before you try to run the application, you need to copy the dl.dll (dlfcn) and isaac.dll (isaac) into the same directory or put them into a system directory(C:\Windows\System32).