Caffe:Windows
Windows에서 Caffe를 사용하기 위한 방법.
Porting
- [추천] 编译Caffe-Win错误集锦 1
Troubleshooting
declaration is incompatible cudnnGetErrorString
컴파일 도중 아래와 같은 에러가 발생될 수 있다.
error : declaration is incompatible with “const char *cudnnGetErrorString(cudnnStatus_t)” D:\caffe\caffe-master\include\caffe\util\cudnn.hpp 17 1 caffe
이 경우 해당 함수의 프로토타입에 CUDNNWINAPI
를 추가하면 된다.
// 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
Visual Studio 2015를 사용하여 컴파일 할 경우 nvcc가 지원하지 않는다고 출력될 수 있다. 이 경우 Visual Studio 2013을 다운받아야 하는데 커뮤니티 버전의 다운로드 링크를 찾는게 힘들 수 있다. 아래의 링크로 들어가거나 Visual Studio 2013 Community
로 검색하면 된다.
- https://www.visualstudio.com/en-us/news/releasenotes/vs2013-community-vs
- Download: https://go.microsoft.com/fwlink/?LinkId=517284
또는 Nsight를 업데이트하면 되지만 필자의 경우 성공하지 못했다.
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