28 #if !defined(AV_COMPAT_DYNLINK_CUDA_H) && !defined(CUDA_VERSION)
29 #define AV_COMPAT_DYNLINK_CUDA_H
33 #define CUDA_VERSION 7050
35 #if defined(_WIN32) || defined(__CYGWIN__)
36 #define CUDAAPI __stdcall
41 #define CU_CTX_SCHED_BLOCKING_SYNC 4
46 #if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64)
52 typedef enum cudaError_enum {
56 typedef enum CUmemorytype_enum {
61 typedef struct CUDA_MEMCPY2D_st {
CUresult CUDAAPI tcuCtxPushCurrent_v2(CUcontext *pctx)
CUresult CUDAAPI tcuDeviceComputeCapability(int *major, int *minor, CUdevice dev)
CUresult CUDAAPI tcuMemAlloc_v2(CUdeviceptr *dptr, size_t bytesize)
CUresult CUDAAPI tcuGetErrorName(CUresult error, const char **pstr)
CUmemorytype dstMemoryType
CUresult CUDAAPI tcuDeviceGet(CUdevice *device, int ordinal)
static void error(const char *err)
CUresult CUDAAPI tcuCtxDestroy_v2(CUcontext ctx)
CUmemorytype srcMemoryType
CUresult CUDAAPI tcuInit(unsigned int Flags)
CUresult CUDAAPI tcuCtxCreate_v2(CUcontext *pctx, unsigned int flags, CUdevice dev)
CUresult CUDAAPI tcuMemFree_v2(CUdeviceptr dptr)
CUresult CUDAAPI tcuDeviceGetName(char *name, int len, CUdevice dev)
CUresult CUDAAPI tcuCtxPopCurrent_v2(CUcontext *pctx)
CUresult CUDAAPI tcuGetErrorString(CUresult error, const char **pstr)
CUresult CUDAAPI tcuMemcpy2D_v2(const CUDA_MEMCPY2D *pcopy)
CUresult CUDAAPI tcuDeviceGetCount(int *count)