Skip to content
Search

Caffe:Windows

lastmod 2018-08-17created 2016-10-216 edits

How to use Caffe on Windows.

Porting

Troubleshooting

declaration is incompatible cudnnGetErrorString

The following error may occur during compilation.

error : declaration is incompatible with “const char *cudnnGetErrorString(cudnnStatus_t)” D:\caffe\caffe-master\include\caffe\util\cudnn.hpp 17 1 caffe

In this case, add CUDNNWINAPI to the function's prototype.

// Using CUDNN v2, I had to change the following in cudnn.hpp
// “inline const char* cudnnGetErrorString(cudnnStatus_t status)”
// to
“inline const char * CUDNNWINAPI cudnnGetErrorString(cudnnStatus_t status)”

Unsupported compiler Visual Studio 2015

When compiling with Visual Studio 2015, nvcc may report that it is not supported. In this case you need to download Visual Studio 2013, but the download link for the Community edition can be hard to find. Use the links below or search for Visual Studio 2013 Community.

Alternatively, you can update Nsight, but it did not work for me.

See the following pages:

See also

Favorite site

References


  1. Blog.csdn.net_-_caffe_windows_porting.pdf ↩

  2. Build_Caffe_in_Windows_with_Visual_Studio_2013_CUDA_6.5_OpenCV_2.4.9_–_Neil_Z.pdf ↩