jit_macros.h 484 B

123456789101112
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/cuda/CUDAConfig.h>
  4. #include <string>
  5. // AT_USE_JITERATOR(), controls whether we jit some elementwise kernels
  6. #define AT_USE_JITERATOR() true
  7. #define jiterator_stringify(...) std::string(#__VA_ARGS__);
  8. #else
  9. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  10. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)