Get the size of VGPR and SGPR register file

Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Change-Id: Ifa515ad7e1df1dd27f25f1e919b0053049531063
这个提交包含在:
Mike Li 编写, Mike (Tianxin) Li 于 2021-05-13 11:54:41 -04:00 提交
1 父节点 5f0e39df63
当前提交 344ed757e0
2 个文件已更改
+17 -1

没有与搜索条件相匹配的文件

@@ -984,6 +984,12 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
case HSA_AMD_AGENT_INFO_ASIC_REVISION:
*((uint32_t*)value) = static_cast<uint32_t>(properties_.Capability.ui32.ASICRevision);
break;
case HSA_AMD_AGENT_INFO_VGPR_SIZE:
*((uint32_t*)value) = properties_.VGPRSizePerCU;
break;
case HSA_AMD_AGENT_INFO_SGPR_SIZE:
*((uint32_t*)value) = properties_.SGPRSizePerCU;
break;
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
break;