CUDAEvent.h 440 B

123456789101112
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/cuda/ATenCUDAGeneral.h>
  4. #include <ATen/cuda/CUDAContext.h>
  5. #include <ATen/cuda/Exceptions.h>
  6. #include <c10/cuda/CUDAEvent.h>
  7. #include <c10/cuda/CUDAGuard.h>
  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)