Classes | Namespaces | Macros | Functions
cufft_utils.h File Reference
#include <raft/core/error.hpp>
#include <cufft.h>
Include dependency graph for cufft_utils.h:

Go to the source code of this file.

Classes

struct  raft::cufft_error
 Exception thrown when a cuFFT error is encountered. More...
 
class  raft::CuFFTHandle
 

Namespaces

 raft
 

Macros

#define CUFFT_TRY(call)
 Error checking macro for cuFFT functions. More...
 

Functions

const char * raft::getCufftErrStr (cufftResult status)
 

Macro Definition Documentation

◆ CUFFT_TRY

#define CUFFT_TRY (   call)
Value:
do { \
const cufftResult status = call; \
if (status != CUFFT_SUCCESS) { \
std::string msg{}; \
SET_ERROR_MSG(msg, \
"cuFFT error encountered at: ", \
"call='%s', Reason=%s", \
#call, \
throw raft::cufft_error(msg); \
} \
} while (0)
const char * getCufftErrStr(cufftResult status)
Definition: cufft_utils.h:34
Exception thrown when a cuFFT error is encountered.
Definition: cufft_utils.h:29

Error checking macro for cuFFT functions.

Invokes a cuFFT function. If the call does not return CUFFT_SUCCESS, throws an exception detailing the error that occurred.