cudnn-wrapper.h 794 B

123456789101112131415161718192021
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <cudnn.h>
  4. #define STRINGIFY(x) #x
  5. #define STRING(x) STRINGIFY(x)
  6. #if CUDNN_MAJOR < 8 || (CUDNN_MAJOR == 8 && CUDNN_MINOR < 5)
  7. #pragma message("CuDNN v" STRING( \
  8. 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")
  9. #pragma message "We strongly encourage you to move to 8.5 and above."
  10. #pragma message "This message is intended to annoy you enough to update."
  11. #endif
  12. #undef STRINGIFY
  13. #undef STRING
  14. #else
  15. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  16. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)