Skip to content

Caffe:Windows

Windows에서 Caffe를 사용하기 위한 방법.

Porting

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로 검색하면 된다.

또는 Nsight를 업데이트하면 되지만 필자의 경우 성공하지 못했다.

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