CUDAContext.h 492 B

1234567891011121314
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/cuda/CUDAContextLight.h>
  4. // Preserved for BC, as many files depend on these includes
  5. #include <ATen/Context.h>
  6. #include <c10/cuda/CUDAStream.h>
  7. #include <c10/util/Logging.h>
  8. #include <ATen/cuda/Exceptions.h>
  9. #else
  10. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  11. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)