Navigation
API > API/Runtime > API/Runtime/CUDA
| Name | FCUDAModule |
| Type | class |
| Header File | /Engine/Source/Runtime/CUDA/Source/Public/CudaModule.h |
| Include Path | #include "CudaModule.h" |
Syntax
class FCUDAModule : public IModuleInterface
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnPostCUDAInit | FOnPostCUDAInit | Called after CUDA is loaded successfully. | CudaModule.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| contextMap | TMap< uint32, CUcontext > | CudaModule.h | ||
| DriverApiPtrs | CUDA_DRIVER_API_FUNCTION_LIST | CudaModule.h | ||
| DriverLibrary | void * | CudaModule.h | ||
| rhiDeviceIndex | uint32 | CudaModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const CUDA_DRIVER_API_FUNCTION_LIST * DriverAPI() |
Retrieves the function pointer list for the CUDA Driver API. | CudaModule.h | |
CUcontext GetCudaContext() |
Retrieves the CUDA context for the GPU device currently in use by the Vulkan RHI. | CudaModule.h | |
CUcontext GetCudaContextForDevice
(
int DeviceIndex |
Retrieves or creates the CUDA context for the specified GPU device. | CudaModule.h | |
uint32 GetCudaDeviceIndex() |
Retrieves the device index for the current context. | CudaModule.h | |
bool IsAvailable() |
Determines if the CUDA Driver API is available for use. | CudaModule.h | |
bool IsDeviceIndexRHISelected
(
int DeviceIndex |
CudaModule.h | ||
virtual void ShutdownModule() |
CudaModule.h | ||
virtual void StartupModule() |
CudaModule.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static CUDA_DRIVER_API_FUNCTION_LIST CUDA() |
CudaModule.h |