3 #include <isce3/except/Error.h>
6 namespace isce3 {
namespace cuda {
namespace except {
8 using namespace isce3::except;
29 RuntimeError(info, std::string(
"cudaError ") + std::to_string(err)) {}
42 inline 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())
CudaError provide the same information as BaseError, and also retains the original error code...
Definition: Error.h:13