GetLibVersion
Obtain the HMPP version information:
const HmppLibraryVersion* HMPP_GetLibVersion ();
Return Value
Start pointer to the HmppLibraryVersion variable that stores version information
Error Codes
None
- Do not release the memory to which the pointer points.
- This API is deprecated. For related functions, use the GetProductVersion interface instead.
Example
void HMPP_GetLibVersion_Example()
{
const HmppLibraryVersion *libVersion = HMPP_GetLibVersion();
printf("HMPP_VERSION_MAJOR = %d\n", libVersion->major);
printf("HMPP_VERSION_MINOR = %d\n", libVersion->minor);
printf("HMPP_VERSION_PATCH = %d\n", libVersion->patch);
printf("HMPP_VERSION_BUILDDATE = %s\n", libVersion->buildDate);
}
Output:
HMPP_VERSION_MAJOR = 1 HMPP_VERSION_MINOR = 0 HMPP_VERSION_PATCH = 0 HMPP_VERSION_BUILDDATE = 2020.04.27
Parent topic: Basic Functions