Expose ROCr build ID.
Adds HSA_AMD_SYSTEM_INFO_BUILD_VERSION=0x200 to hsa_system_info_t.
This returns a const char* pointing at the build string (git describe).
Change-Id: I73e6612482bf6ffc4037fd365808eb9211a650ad
[ROCm/ROCR-Runtime commit: cd8e5c1da8]
This commit is contained in:
@@ -585,6 +585,10 @@ hsa_status_t Runtime::GetSystemInfo(hsa_system_info_t attribute, void* value) {
|
||||
|
||||
break;
|
||||
}
|
||||
case HSA_AMD_SYSTEM_INFO_BUILD_VERSION: {
|
||||
*(const char**)value = STRING(ROCR_BUILD_ID);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
@@ -476,7 +476,11 @@ typedef enum {
|
||||
* implementation. An extension with an ID of @p i is supported if the bit at
|
||||
* position @p i is set. The type of this attribute is uint8_t[128].
|
||||
*/
|
||||
HSA_SYSTEM_INFO_EXTENSIONS = 7
|
||||
HSA_SYSTEM_INFO_EXTENSIONS = 7,
|
||||
/**
|
||||
* String containing the ROCr build identifier.
|
||||
*/
|
||||
HSA_AMD_SYSTEM_INFO_BUILD_VERSION = 0x200
|
||||
} hsa_system_info_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user