Caffe2 - C++ API
A deep learning, cross platform ML framework
cudnn-wrapper.h
1 #pragma once
2 
3 #include <cudnn.h>
4 
5 #define STRINGIFY(x) #x
6 #define STRING(x) STRINGIFY(x)
7 
8 #if CUDNN_MAJOR < 6
9 #pragma message ("CuDNN v" STRING(CUDNN_MAJOR) " found, but need at least CuDNN v6. You can get the latest version of CuDNN from https://developer.nvidia.com/cudnn or disable CuDNN with NO_CUDNN=1")
10 #pragma message "We strongly encourage you to move to 6.0 and above."
11 #pragma message "This message is intended to annoy you enough to update."
12 #endif
13 
14 #undef STRINGIFY
15 #undef STRING
16