FFmpeg
|
#include "compat/cuda/dynlink_loader.h"
Go to the source code of this file.
Macros | |
#define | FF_CUDA_CHECK(avclass, x) ff_cuda_check(avclass, cuGetErrorName, cuGetErrorString, (x), #x) |
Convenience wrapper for ff_cuda_check when directly linking libcuda. More... | |
#define | FF_CUDA_CHECK_DL(avclass, cudl, x) ff_cuda_check(avclass, cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x) |
Convenience wrapper for ff_cuda_check when dynamically loading cuda symbols. More... | |
Typedefs | |
typedef CUresult CUDAAPI | cuda_check_GetErrorName(CUresult error, const char **pstr) |
typedef CUresult CUDAAPI | cuda_check_GetErrorString(CUresult error, const char **pstr) |
Functions | |
static int | ff_cuda_check (void *avctx, void *cuGetErrorName_fn, void *cuGetErrorString_fn, CUresult err, const char *func) |
Wrap a CUDA function call and print error information if it fails. More... | |
#define FF_CUDA_CHECK | ( | avclass, | |
x | |||
) | ff_cuda_check(avclass, cuGetErrorName, cuGetErrorString, (x), #x) |
Convenience wrapper for ff_cuda_check when directly linking libcuda.
Definition at line 58 of file cuda_check.h.
#define FF_CUDA_CHECK_DL | ( | avclass, | |
cudl, | |||
x | |||
) | ff_cuda_check(avclass, cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x) |
Convenience wrapper for ff_cuda_check when dynamically loading cuda symbols.
Definition at line 64 of file cuda_check.h.
typedef CUresult CUDAAPI cuda_check_GetErrorName(CUresult error, const char **pstr) |
Definition at line 25 of file cuda_check.h.
typedef CUresult CUDAAPI cuda_check_GetErrorString(CUresult error, const char **pstr) |
Definition at line 26 of file cuda_check.h.
|
inlinestatic |
Wrap a CUDA function call and print error information if it fails.
Definition at line 31 of file cuda_check.h.