Loading...
Searching...
No Matches
CudaFunctions.hpp File Reference
Shared dlopen'd CUDA driver-API table for score-plugin-gfx. More...
Detailed Description
Shared dlopen'd CUDA driver-API table for score-plugin-gfx.
Avoids the CUDAToolkit link-time dependency: we declare the subset of CUDA types/structs/enums we use, then load libcuda.so.1 (Linux) or nvcuda.dll (Windows) at runtime and resolve every entry point through dlsym/GetProcAddress.
Consumers in-tree:
- Gfx/Graph/decoders/HWCUDA.hpp — zero-copy NVDEC → Vulkan path
- Gfx/Graph/interop/ — vendor-neutral CUDA interop (CudaInterop, RdmaGpuBuffer, HostPinnedRing, CudaVmmAllocator, GpuCapabilities): AJA RDMA, planned Magewell + Rivermax
Each embeds a CudaFunctions and calls load() once. The function pointers are versioned symbol names (_v2 where appropriate) — see CUDA Driver API headers for the canonical naming.
Go to the source code of this file.
Classes | |
| struct | CUmemLocation_st |
| struct | CUmemAllocationProp_st |
| struct | CUmemAccessDesc_st |
| struct | CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st |
| struct | CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st |
| struct | CUDA_ARRAY3D_DESCRIPTOR_st |
| struct | CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st |
| struct | CUDA_MEMCPY2D_st |
| struct | CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st |
| struct | CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st |
| struct | score::gfx::CudaFunctions |
| Runtime-loaded CUDA driver-API table. Owns the libcuda handle. More... | |
Namespaces | |
| namespace | score |
| Base toolkit upon which the software is built. | |
| namespace | score::gfx |
| Graphics rendering pipeline for ossia score. | |
Typedefs | |
| typedef struct CUctx_st * | CUcontext |
| typedef struct CUstream_st * | CUstream |
| typedef struct CUmod_st * | CUmodule |
| typedef struct CUfunc_st * | CUfunction |
| typedef struct CUextMemory_st * | CUexternalMemory |
| typedef struct CUextSemaphore_st * | CUexternalSemaphore |
| typedef struct CUmipmappedArray_st * | CUmipmappedArray |
| typedef struct CUarray_st * | CUarray |
| typedef struct CUgraphicsResource_st * | CUgraphicsResource |
| typedef int | CUdevice |
| typedef unsigned int | CUdeviceptr |
| typedef enum cudaError_enum | CUresult |
| typedef enum CUdevice_attribute_enum | CUdevice_attribute |
| typedef enum CUexternalMemoryHandleType_enum | CUexternalMemoryHandleType |
| typedef enum CUexternalSemaphoreHandleType_enum | CUexternalSemaphoreHandleType |
| typedef enum CUarray_format_enum | CUarray_format |
| typedef enum CUmemorytype_enum | CUmemorytype |
| typedef unsigned long long | CUmemGenericAllocationHandle |
| typedef enum CUmemAllocationType_enum | CUmemAllocationType |
| typedef enum CUmemAllocationHandleType_enum | CUmemAllocationHandleType |
| typedef enum CUmemLocationType_enum | CUmemLocationType |
| typedef enum CUmemAccess_flags_enum | CUmemAccess_flags |
| typedef enum CUmemAllocationGranularity_flags_enum | CUmemAllocationGranularity_flags |
| typedef enum CUmemRangeHandleType_enum | CUmemRangeHandleType |
| typedef struct CUmemLocation_st | CUmemLocation |
| typedef struct CUmemAllocationProp_st | CUmemAllocationProp |
| typedef struct CUmemAccessDesc_st | CUmemAccessDesc |
| typedef struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st | CUDA_EXTERNAL_MEMORY_HANDLE_DESC |
| typedef struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st | CUDA_EXTERNAL_MEMORY_BUFFER_DESC |
| typedef struct CUDA_ARRAY3D_DESCRIPTOR_st | CUDA_ARRAY3D_DESCRIPTOR |
| typedef struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st | CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC |
| typedef struct CUDA_MEMCPY2D_st | CUDA_MEMCPY2D |
| typedef struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st | CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC |
| typedef struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st | CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |