aqlprofile: get version API

Change-Id: I3a85c088bfff3f54d8829e17cdafd7dfcdfb0c1d
Šī revīzija ir iekļauta:
Evgeny
2018-04-27 20:20:47 -05:00
revīziju iesūtīja Evgeny Shcherbakov
vecāks 11e13704ea
revīzija 0fcd2fa56e
2 mainīti faili ar 17 papildinājumiem un 0 dzēšanām
@@ -50,10 +50,18 @@
#include <stdint.h>
#include "hsa.h"
#define HSA_AQLPROFILE_VERSION_MAJOR 2
#define HSA_AQLPROFILE_VERSION_MINUR 0
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
////////////////////////////////////////////////////////////////////////////////
// Library version
uint32_t hsa_ven_amd_aqlprofile_version_major();
uint32_t hsa_ven_amd_aqlprofile_version_minor();
///////////////////////////////////////////////////////////////////////
// Library API:
// The library provides helper methods for instantiation of
@@ -292,6 +300,9 @@ static const char kAqlProfileLib[] = "libhsa-amd-aqlprofile.so.1";
* @brief Extension function table.
*/
typedef struct hsa_ven_amd_aqlprofile_1_00_pfn_s {
uint32_t (*hsa_ven_amd_aqlprofile_version_major)();
uint32_t (*hsa_ven_amd_aqlprofile_version_minor)();
hsa_status_t (*hsa_ven_amd_aqlprofile_error_string)(
const char** str);