Add query for driver gpu_id
Add query OS driver node ID (gpu_id)
Change-Id: I72ebc54d8ae5dbcd1346535912160a642b1065ae
[ROCm/ROCR-Runtime commit: 60a0fd64c4]
Dieser Commit ist enthalten in:
1 Ursprung
e126b5a054
Commit
175265aef4
3 Dateien geändert
+12
-1
Keine Dateien entsprechen Ihrer Suche
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren