ErrorCheckMacros#

Macros#

CUDA_CHECK_ERROR_GOTO

Macro to check the return value of a CUDA API call and jump to a label if an error is detected.

CUPVA_CHECK_ERROR

Macro to check the return value of a CUPVA API call and throw an exception if an error is detected.

CUPVA_CHECK_ERROR_GOTO

Macro to check the return value of a CUPVA API call and jump to a label if an error is detected.

NVCV_CHECK_ERROR

Macro to check the return value of a NVCV API call and throw an exception if an error is detected.

NVCV_CHECK_ERROR_GOTO

Macro to check the return value of a NVCV API call and jump to a label if an error is detected.

Functions#

void CupvaCheckError(cupvaError_t err, const char *file, const int line, void(*cleanup_callback)()=nullptr)

Function to check the return value of a CUPVA API call and throw an exception if an error is detected.

void NvcvCheckError(NVCVStatus status, const char *file, const int line, void(*cleanup_callback)()=nullptr)

Function to check the return value of a NVCV API call and throw an exception if an error is detected.

Functions#

inline void CupvaCheckError(
cupvaError_t err,
const char *file,
const int line,
void (*cleanup_callback)() = nullptr,
)#

Function to check the return value of a CUPVA API call and throw an exception if an error is detected.

inline void NvcvCheckError(
NVCVStatus status,
const char *file,
const int line,
void (*cleanup_callback)() = nullptr,
)#

Function to check the return value of a NVCV API call and throw an exception if an error is detected.