From a02b318a7ee18ed2289de500aedf4c1b31ceb514 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 16 Sep 2021 21:15:52 -0500 Subject: [PATCH] Correct fast f16 capability reporting. Was hard coded to false. Updated to reflect f16 availablity since gfx8. Change-Id: I7d5b9792c8e0163199c421a61b5d49b25cd98645 [ROCm/ROCR-Runtime commit: 5535b1f86f8096a4f07670881a02d6c14440f878] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 3b185a8968..6dc93a4403 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 @@ -795,7 +795,11 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const { HSA_DEFAULT_FLOAT_ROUNDING_MODE_NEAR; break; case HSA_AGENT_INFO_FAST_F16_OPERATION: - *((bool*)value) = false; + if (isa_->GetMajorVersion() >= 8) { + *((bool*)value) = true; + } else { + *((bool*)value) = false; + } break; case HSA_AGENT_INFO_PROFILE: *((hsa_profile_t*)value) = profile_;