Data Structures | |
| struct | cupvaHardwareInfo_t |
| Holds the PVA hardware information. More... | |
Functions | |
| DLL_EXPORT cupvaError_t | CupvaGetHardwareInfo (cupvaHardwareInfo_t *const hardwareInfo) |
| Query the hardware information on given platform. More... | |
| DLL_EXPORT cupvaError_t | CupvaGetLastError (char const **const errorMsg) |
| Get the last error code and error message. More... | |
| DLL_EXPORT cupvaError_t | CupvaGetDriverVersion (uint32_t *driverVersion) |
| Get the version of the PVA driver. More... | |
| DLL_EXPORT cupvaError_t | CupvaGetRuntimeVersion (uint32_t *runtimeVersion) |
| Get the version of the CUPVA runtime library. More... | |
| enum cupvaError_t |
Possible error codes returned by the API.
Definition at line 28 of file cupva_host_types_detail.h.
| DLL_EXPORT cupvaError_t CupvaGetDriverVersion | ( | uint32_t * | driverVersion | ) |
Get the version of the PVA driver.
A PVA application and the cuPVA runtime may be deployed on multiple different platform versions. Each BSP version is packaged with a PVA driver, which is versioned based on its compatibility with cuPVA runtime versions. The driver version is represented as an integer defined as (VERSION_MAJOR * 1000 + VERSION_MINOR). If the driver version is greater than or equal to the runtime version while remaining within the same major release, this means that all features of the runtime are fully supported. If the driver version is less than the runtime version, then some APIs may not be available. Refer to individual API documentation for further information.
For example, if the cuPVA runtime version is 2.5, and CupvaGetDriverVersion returns 2005 or 2006, it is guaranteed that the platform fully supports the cuPVA runtime version. If the cuPVA runtime version is 2.6, and CupvaGetDriverVersion returns 2005, some features of the runtime may not be available on that platform.
| [out] | driverVersion | integer which will hold the driver version on successful API call |
Usage considerations
| DLL_EXPORT cupvaError_t CupvaGetHardwareInfo | ( | cupvaHardwareInfo_t *const | hardwareInfo | ) |
Query the hardware information on given platform.
| [in] | hardwareInfo | The pointer to cupvaHardwareInfo_t object. |
Usage considerations
| DLL_EXPORT cupvaError_t CupvaGetLastError | ( | char const **const | errorMsg | ) |
Get the last error code and error message.
| [out] | errorMsg | a char double pointer to return the last error messages. |
Usage considerations
| DLL_EXPORT cupvaError_t CupvaGetRuntimeVersion | ( | uint32_t * | runtimeVersion | ) |
Get the version of the CUPVA runtime library.
This API will always return the current maj.min version of the CUPVA runtime library, represented as MAJOR * 1000 + MINOR. For example, with CUPVA 2.5.3 this API would return 2005.
| [out] | runtimeVersion | integer which will hold the driver version on successful API call |
Usage considerations