You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
682 B
21 lines
682 B
#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
|
|
#pragma once
|
|
// this file is to avoid circular dependency between CUDAFunctions.h and
|
|
// CUDAExceptions.h
|
|
|
|
#include <c10/cuda/CUDAMacros.h>
|
|
#include <cuda_runtime.h>
|
|
|
|
#include <mutex>
|
|
#include <string>
|
|
|
|
namespace c10::cuda {
|
|
C10_CUDA_API std::string get_cuda_error_help(cudaError_t /*error*/) noexcept;
|
|
C10_CUDA_API const char* get_cuda_check_suffix() noexcept;
|
|
C10_CUDA_API std::mutex* getFreeMutex();
|
|
} // namespace c10::cuda
|
|
|
|
#else
|
|
#error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
|
|
#endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
|