SWDEV-305766 - Added new debug APIs to get build information

Change-Id: Ibbf0c010cd8f7e6e659f2c4ba932cc8436574431
This commit is contained in:
anusha GodavarthySurya
2021-11-25 00:33:26 -08:00
committed by Anusha Godavarthy Surya
parent 1564f2cd77
commit e90cb3b07b
6 changed files with 63 additions and 1 deletions
+13
View File
@@ -4,6 +4,19 @@
#include "hip_internal.hpp"
#include "hip_code_object.hpp"
#include "platform/program.hpp"
#include <hip/hip_version.h>
const char* amd_dbgapi_get_build_name(void) {
return HIP_VERSION_BUILD_NAME;
}
const char* amd_dbgapi_get_git_hash() {
return HIP_VERSION_GITHASH;
}
size_t amd_dbgapi_get_build_id() {
return HIP_VERSION_BUILD_ID;
}
#ifdef __HIP_ENABLE_PCH
extern const char __hip_pch[];