From f60550207c0b2bd51f2fb83f3b21172d1c28039a Mon Sep 17 00:00:00 2001 From: "Mike (Tianxin) Li" Date: Thu, 13 May 2021 12:17:51 -0400 Subject: [PATCH] Revert "Get the size of VGPR and SGPR register file" This reverts commit 2ae10ae479d6b7d2c5052f44c0c8be9b66a20d45. Change-Id: I9988218ad1d2b6182d92aad09d18a95e77e46c01 [ROCm/ROCR-Runtime commit: 36c54c63f79285d5ab916715b82a7fea76d6e117] --- .../hsa-runtime/core/runtime/amd_gpu_agent.cpp | 6 ------ .../runtime/hsa-runtime/inc/hsa_ext_amd.h | 12 +----------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 46b00d284f..eb1e010cb3 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -984,12 +984,6 @@ 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(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; diff --git a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h index 905a003f96..a0bc5d1d99 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h @@ -291,17 +291,7 @@ typedef enum hsa_amd_agent_info_s { * selective workarounds for hardware errata. * The type of this attribute is uint32_t. */ - HSA_AMD_AGENT_INFO_ASIC_REVISION = 0xA012, - /** - * Size of VGPR register file in kilobytes per CU. - * The type of this attribute is uint32_t. - */ - HSA_AMD_AGENT_INFO_VGPR_SIZE = 0xA013, - /** - * Size of SGPR register file in kilobytes per CU. - * The type of this attribute is uint32_t. - */ - HSA_AMD_AGENT_INFO_SGPR_SIZE = 0xA014 + HSA_AMD_AGENT_INFO_ASIC_REVISION = 0xA012 } hsa_amd_agent_info_t; typedef struct hsa_amd_hdp_flush_s {