3#include <isce3/except/Error.h>
6namespace isce3 {
namespace cuda {
namespace except {
8 using namespace isce3::except;
13 struct CudaError : RuntimeError {
15 CudaError(
const SrcInfo& info,
const T err);
21 CudaError<cudaError_t>::CudaError(
const SrcInfo& info,
const cudaError_t err);
24 CudaError<cufftResult>::CudaError(
const SrcInfo& info,
const cufftResult err);
27 CudaError<T>::CudaError(
const SrcInfo& info,
const T err) :
29 RuntimeError(info, std::string(
"cudaError ") + std::to_string(err)) {}
42inline void checkCudaErrorsImpl<cufftResult>(
44 if (err != CUFFT_SUCCESS)
53 checkCudaErrorsImpl(info, cudaPeekAtLastError());
55 checkCudaErrorsImpl(info, cudaDeviceSynchronize());
60#define checkCudaErrors(val) checkCudaErrorsImpl(ISCE_SRCINFO(), val)
63#define checkCudaAsyncErrors() checkCudaAsyncErrorsImpl(ISCE_SRCINFO())
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5
CudaError provide the same information as BaseError, and also retains the original error code.
Definition Error.h:13