CUDAMiscFunctions.h 418 B

123456789101112131415
  1. #pragma once
  2. // this file is to avoid circular dependency between CUDAFunctions.h and
  3. // CUDAExceptions.h
  4. #include <c10/cuda/CUDAMacros.h>
  5. #include <cuda_runtime.h>
  6. #include <mutex>
  7. #include <string>
  8. namespace c10::cuda {
  9. C10_CUDA_API std::string get_cuda_error_help(cudaError_t) noexcept;
  10. C10_CUDA_API const char* get_cuda_check_suffix() noexcept;
  11. C10_CUDA_API std::mutex* getFreeMutex();
  12. } // namespace c10::cuda