Add query for driver gpu_id

Add query OS driver node ID (gpu_id)

Change-Id: I72ebc54d8ae5dbcd1346535912160a642b1065ae
이 커밋은 다음에 포함됨:
David Yat Sin가 2023-06-23 15:02:48 +00:00를 커밋했습니다
1 부모 8a6edb07d9
커밋 60a0fd64c4
3 파일이 변경됨
+12 -1

검색과 일치하는 파일 없음

+3
파일 보기
@@ -388,6 +388,9 @@ hsa_status_t CpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
case HSA_AMD_AGENT_INFO_NUM_XCC:
*((uint32_t*)value) = 0;
break;
case HSA_AMD_AGENT_INFO_DRIVER_UID:
*((uint32_t*)value) = 0;
break;
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
break;
+3
파일 보기
@@ -1352,6 +1352,9 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
case HSA_AMD_AGENT_INFO_NUM_XCC:
*((uint32_t*)value) = static_cast<uint32_t>(properties_.NumXcc);
break;
case HSA_AMD_AGENT_INFO_DRIVER_UID:
*((uint32_t*)value) = KfdGpuID();
break;
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
break;
+6 -1
파일 보기
@@ -394,7 +394,12 @@ typedef enum hsa_amd_agent_info_s {
* Queries for number of XCCs within the agent.
* The type of this attribute is uint32_t.
*/
HSA_AMD_AGENT_INFO_NUM_XCC = 0xA111
HSA_AMD_AGENT_INFO_NUM_XCC = 0xA111,
/**
* Queries for driver unique identifier.
* The type of this attribute is uint32_t.
*/
HSA_AMD_AGENT_INFO_DRIVER_UID = 0xA112
} hsa_amd_agent_info_t;
/**