NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
cupva_host_global_util.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 #ifndef CUPVA_HOST_GLOBAL_UTIL_H
12 #define CUPVA_HOST_GLOBAL_UTIL_H
13 
14 #include <detail/scheduling/cupva_host_types_scheduling.h>
15 #include <stdint.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
29 typedef struct
30 {
31  /* The number of PVA engines on the chip. */
32  uint32_t pvaEngineCount;
33 
34  /* The number of VPU instances per PVA engine. */
35  uint32_t pvaVPUCount;
36 
39 
61 
77 DLL_EXPORT cupvaError_t CupvaGetLastError(char const **const errorMsg);
78 
105 DLL_EXPORT cupvaError_t CupvaGetDriverVersion(uint32_t *driverVersion);
106 
125 DLL_EXPORT cupvaError_t CupvaGetRuntimeVersion(uint32_t *runtimeVersion);
126 
129 #ifdef __cplusplus
130 }
131 #endif
132 #endif
cupvaHardwareInfo_t::pvaGen
cupvaGenType_t pvaGen
Definition: cupva_host_global_util.h:37
cupvaGenType_t
cupvaGenType_t
PVA hardware generations.
Definition: cupva_host_types_scheduling.h:61
CupvaGetDriverVersion
DLL_EXPORT cupvaError_t CupvaGetDriverVersion(uint32_t *driverVersion)
Get the version of the PVA driver.
DLL_EXPORT
#define DLL_EXPORT
Definition: cupva_host_types_detail.h:21
cupvaError_t
cupvaError_t
Possible error codes returned by the API.
Definition: cupva_host_types_detail.h:28
cupvaHardwareInfo_t
Holds the PVA hardware information.
Definition: cupva_host_global_util.h:29
CupvaGetRuntimeVersion
DLL_EXPORT cupvaError_t CupvaGetRuntimeVersion(uint32_t *runtimeVersion)
Get the version of the CUPVA runtime library.
cupvaHardwareInfo_t::pvaVPUCount
uint32_t pvaVPUCount
Definition: cupva_host_global_util.h:35
CupvaGetHardwareInfo
DLL_EXPORT cupvaError_t CupvaGetHardwareInfo(cupvaHardwareInfo_t *const hardwareInfo)
Query the hardware information on given platform.
cupvaHardwareInfo_t::pvaEngineCount
uint32_t pvaEngineCount
Definition: cupva_host_global_util.h:32
CupvaGetLastError
DLL_EXPORT cupvaError_t CupvaGetLastError(char const **const errorMsg)
Get the last error code and error message.