Report HMM driver support status.

Implements HSA_AMD_SYSTEM_INFO_SVM_SUPPORTED.

Change-Id: If5182edcc1fa067fa514aa2c1bd326c4c42d1b64


[ROCm/ROCR-Runtime commit: ee8b1b64ad]
이 커밋은 다음에 포함됨:
Sean Keely
2021-04-21 21:44:42 -05:00
부모 1aae64e251
커밋 13c8e534d3
2개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
+1 -1
파일 보기
@@ -143,7 +143,7 @@ GpuAgent* DiscoverGpu(HSAuint32 node_id, HsaNodeProperties& node_prop, bool xnac
if (gpu->isa()->GetProcessorName() == "gfx908") {
node_prop.Capability.ui32.SRAM_EDCSupport = 1;
delete gpu;
gpu = new GpuAgent(node_id, node_prop);
gpu = new GpuAgent(node_id, node_prop, xnack_mode);
}
}
} catch (const hsa_exception& e) {
+6 -2
파일 보기
@@ -645,8 +645,12 @@ hsa_status_t Runtime::GetSystemInfo(hsa_system_info_t attribute, void* value) {
break;
}
case HSA_AMD_SYSTEM_INFO_SVM_SUPPORTED: {
// todo: Get HMM kernel support info.
*(bool*)value = true;
bool ret = true;
for (auto agent : gpu_agents_) {
AMD::GpuAgent* gpu = (AMD::GpuAgent*)agent;
ret &= (gpu->properties().Capability.ui32.SVMAPISupported == 1);
}
*(bool*)value = ret;
break;
}
case HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT: {