CUDAConfig.h 673 B

12345678910111213141516171819
  1. #pragma once
  2. // Test these using #if AT_CUDNN_ENABLED(), not #ifdef, so that it's
  3. // obvious if you forgot to include Config.h
  4. // c.f. https://stackoverflow.com/questions/33759787/generating-an-error-if-checked-boolean-macro-is-not-defined
  5. //
  6. // NB: This header MUST NOT be included from other headers; it should
  7. // only be included from C++ files.
  8. #define AT_CUDNN_ENABLED() 1
  9. #define AT_ROCM_ENABLED() 0
  10. #define AT_MAGMA_ENABLED() 0
  11. // Needed for hipMAGMA to correctly identify implementation
  12. #if (AT_ROCM_ENABLED() && AT_MAGMA_ENABLED())
  13. #define HAVE_HIP 1
  14. #endif
  15. #define NVCC_FLAGS_EXTRA "-gencode;arch=compute_72,code=sm_72;-gencode;arch=compute_87,code=sm_87"