Report HMM driver support status.
Implements HSA_AMD_SYSTEM_INFO_SVM_SUPPORTED.
Change-Id: If5182edcc1fa067fa514aa2c1bd326c4c42d1b64
[ROCm/ROCR-Runtime commit: ee8b1b64ad]
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user