Caffe:Windows
lastmod 2018-08-17created 2016-10-216 edits
How to use Caffe on Windows.
Porting
- [Recommended] 编译Caffe-Win错误集锦 1
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.
- https://www.visualstudio.com/en-us/news/releasenotes/vs2013-community-vs
- Download: https://go.microsoft.com/fwlink/?LinkId=517284
Alternatively, you can update Nsight, but it did not work for me.
See the following pages:
See also
Favorite site
- Build Caffe in Windows with Visual Studio 2013 + CUDA 6.5 + OpenCV 2.4.9 2
- Caffe + vs2013 + OpenCV in Windows Tutorial (I) – Setup
References
Pages that link here