cudnn-wrapper.h 540 B

12345678910111213141516
  1. #pragma once
  2. #include <cudnn.h>
  3. #define STRINGIFY(x) #x
  4. #define STRING(x) STRINGIFY(x)
  5. #if CUDNN_MAJOR < 8 || (CUDNN_MAJOR == 8 && CUDNN_MINOR < 5)
  6. #pragma message("CuDNN v" STRING( \
  7. CUDNN_MAJOR) " found, but need at least CuDNN v8. You can get the latest version of CuDNN from https://developer.nvidia.com/cudnn or disable CuDNN with USE_CUDNN=0")
  8. #pragma message "We strongly encourage you to move to 8.5 and above."
  9. #pragma message "This message is intended to annoy you enough to update."
  10. #endif
  11. #undef STRINGIFY
  12. #undef STRING