47 #ifndef DW_CORE_CONTEXT_H_ 48 #define DW_CORE_CONTEXT_H_ 50 #include <dw/core/Config.h> 55 #include <cuda_runtime_api.h> 304 dwContextHandle_t context);
322 dwContextHandle_t context);
436 #endif // DW_CORE_CONTEXT_H_ bool enablePVA
if true, PVA platform will be enabled.
DW_API_PUBLIC dwStatus dwInitialize(dwContextHandle_t *context, dwVersion header_version, const dwContextParameters *params)
Creates and initializes an SDK context.
NVIDIA DriveWorks API: Core Types
DW_API_PUBLIC dwStatus dwContext_getPVAEngineCount(uint32_t *count, dwContextHandle_t context)
Get the available PVA engines count.
dwGPUDeviceType
GPU device type definitions.
A set of parameters that is passed to the SDK to create the context.
DW_API_PUBLIC dwStatus dwContext_getDLAEngineCount(int32_t *count, dwContextHandle_t context)
Get the available DLA engines count.
enum cudaDeviceAttr cudaDeviceAttr
DW_API_PUBLIC dwStatus dwContext_getGPUDeviceType(dwGPUDeviceType *deviceType, int32_t deviceNum, dwContextHandle_t context)
Returns the device type of the input GPU number.
DW_API_PUBLIC dwStatus dwRelease(dwContextHandle_t context)
Releases the context.
DW_API_PUBLIC dwStatus dwContext_getCurrentTime(dwTime_t *time, dwContextHandle_t context)
Returns the current timestamp.
bool skipCudaInit
if true will skip CUDA initialization in the context
DW_API_PUBLIC dwStatus dwContext_getGPUAttribute(int32_t *value, cudaDeviceAttr attribute, int32_t deviceNum, dwContextHandle_t context)
Returns the value of the selected CUDA attribute for the specific CUDA device.
DW_API_PUBLIC dwStatus dwContext_getCUDAProperties(int32_t *driverVersion, int32_t *apiVersion, dwContextHandle_t context)
Returns Driver and Runtime API version of CUDA on the current machine.
dwStatus
Status definition.
NVIDIA DriveWorks API: Core Version Information
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
DW_API_PUBLIC dwStatus dwContext_selectGPUDevice(int32_t deviceNumber, dwContextHandle_t context)
Selects a GPU device, if available.
bool enableCudaTaskGraph
if true, Cuda task-graph will be used where possible.
DW_API_PUBLIC dwStatus dwContext_isTimePTPSynchronized(bool *flag, dwContextHandle_t context)
Check if the used time source inside the context is synchronized over PTP.
DW_API_PUBLIC dwStatus dwGetLastError(const char **errorMsg)
Retrieves the last error encountered.
DW_API_PUBLIC dwStatus dwContext_setCustomFileFunctions(dwContextHandle_t context, dwCustomizedFileFunctions *fileFunctionPtr)
Set the customized fileStream function pointers in context.
enum cudaTextureAddressMode cudaTextureAddressMode
DW_API_PUBLIC dwStatus dwContext_getGPUDeviceCurrent(int32_t *deviceNumber, dwContextHandle_t context)
Returns the currently selected GPU device.
void * dwCustomizedFileHandle
FileStream function pointers handle.
DW_API_PUBLIC dwStatus dwContext_getGPUArchitecture(const char **architecture, dwContextHandle_t context)
Returns the architecture for the currently selected CUDA device.
const char * dataPath
Path where all DriveWorks related data required during runtime are stored.
DW_API_PUBLIC dwStatus dwContext_getGPUProperties(cudaDeviceProp *properties, int32_t deviceNum, dwContextHandle_t context)
Returns the properties for the specific CUDA device.
struct dwContextObject * dwContextHandle_t
Context handle.
Data structure representing a customize FileStream that can be passed in.
DW_API_PUBLIC dwStatus dwContext_getDataPath(const char **dataPath, dwContextHandle_t context)
Gets the data path of the library that contains the driveworks context.
NVIDIA DriveWorks API: Core Exports
struct dwContextObject const * dwConstContextHandle_t
DW_API_PUBLIC dwStatus dwContext_getGPUCount(int32_t *count, dwContextHandle_t context)
Get the available GPU devices count.
NVIDIA DriveWorks API: Core Status Methods
struct cudaDeviceProp cudaDeviceProp