记录一下Windows下vs2013调用caffe的GPU配置:
Debug:
Include:
D:\caffe-master\include;
D:\NugetPackages\glog.0.3.3.0\build\native\include;
D:\NugetPackages\OpenBLAS.0.2.14.1\lib\native\include;
D:\NugetPackages\OpenCV.2.4.10\build\native\include;
D:\NugetPackages\boost.1.59.0.0\lib\native\include;
D:\NugetPackages\gflags.2.1.2.1\build\native\include;
D:\NugetPackages\hdf5-v120-complete.1.8.15.2\lib\native\include;
D:\NugetPackages\LevelDB-vc120.1.2.0.0\build\native\include;
D:\NugetPackages\lmdb-v120-clean.0.9.14.0\lib\native\include;
D:\NugetPackages\protobuf-v120.2.6.1\build\native\include;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include;
lib:
D:\caffe-master\Build\x64\Debug;
D:\NugetPackages\OpenCV.2.4.10\build\native\lib\x64\v120\Debug;
D:\NugetPackages\boost_chrono-vc120.1.59.0.0\lib\native\address-model-64\lib;
D:\NugetPackages\boost_date_time-vc120.1.59.0.0\lib\native\address-model-64\lib;
D:\NugetPackages\boost_filesystem-vc120.1.59.0.0\lib\native\address-model-64\lib;
D:\NugetPackages\boost_system-vc120.1.59.0.0\lib\native\address-model-64\lib;
D:\NugetPackages\boost_thread-vc120.1.59.0.0\lib\native\address-model-64\lib;
D:\NugetPackages\gflags.2.1.2.1\build\native\x64\v120\dynamic\Lib;
D:\NugetPackages\glog.0.3.3.0\build\native\lib\x64\v120\Debug\dynamic;
D:\NugetPackages\hdf5-v120-complete.1.8.15.2\lib\native\lib\x64;
D:\NugetPackages\LevelDB-vc120.1.2.0.0\build\native\lib\x64\v120\Debug;
D:\NugetPackages\lmdb-v120-clean.0.9.14.0\lib\native\lib\x64;
D:\NugetPackages\OpenBLAS.0.2.14.1\lib\native\lib\x64;
D:\NugetPackages\protobuf-v120.2.6.1\build\native\lib\x64\v120\Debug;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64;
链接器:
caffe.lib;
compute_image_mean.lib;
convert_imageset.lib;
convert_mnist_data.lib;
libcaffe.lib;
opencv_highgui2410d.lib;
opencv_imgproc2410d.lib;
opencv_objdetect2410d.lib;
opencv_core2410d.lib;
opencv_ml2410d.lib;
libboost_date_time-vc120-mt-gd-1_59.lib;
libboost_filesystem-vc120-mt-gd-1_59.lib;
libboost_system-vc120-mt-gd-1_59.lib;
libglogD.lib;
hdf5.lib;
hdf5_cpp.lib;
hdf5_f90cstub.lib;
hdf5_fortran.lib;
hdf5_hl.lib;
hdf5_hl_cpp.lib;
hdf5_hl_f90cstub.lib;
hdf5_hl_fortran.lib;
hdf5_tools.lib;
szip.lib;
zlib.lib;
LevelDbD.lib;
lmdbD.lib;
libprotobufD.lib;
libopenblas.dll.a;
gflags_nothreadsd.lib;
gflagsd.lib;
cublas.lib;
cuda.lib;
cublas_device.lib;
cudnn.lib;
cudadevrt.lib;
cudart.lib;
cudart_static.lib;
cudnn_static.lib;
cufft.lib;
cufftw.lib;
curand.lib;
cusolver.lib;
cusparse.lib;
nppc.lib;
nppi.lib;
npps.lib;
nvblas.lib;
nvcuvid.lib;
nvrtc.lib;
c++ 命令行:
-D_SCL_SECURE_NO_WARNINGS