[llvm] [Offload] For AMDGPU driver, use product name (PR #155632)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 07:57:27 PDT 2025
https://github.com/RossBrunton created https://github.com/llvm/llvm-project/pull/155632
On my system, this causes the device to now identify as "Radeon RX 7900
GRE" rather than "gfx1100". This matches Nvidia, which identifies as
(for example) "NVIDIA GeForce GT 1030".
>From d2f347c2b844fcb32d98530c6330b87bfcf8a6be Mon Sep 17 00:00:00 2001
From: Ross Brunton <ross at codeplay.com>
Date: Wed, 27 Aug 2025 15:55:44 +0100
Subject: [PATCH] [Offload] For AMDGPU driver, use product name
On my system, this causes the device to now identify as "Radeon RX 7900
GRE" rather than "gfx1100". This matches Nvidia, which identifies as
(for example) "NVIDIA GeForce GT 1030".
---
offload/plugins-nextgen/amdgpu/src/rtl.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/offload/plugins-nextgen/amdgpu/src/rtl.cpp b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
index 5f397436dffd1..a90bd65a9d908 100644
--- a/offload/plugins-nextgen/amdgpu/src/rtl.cpp
+++ b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
@@ -2807,11 +2807,11 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
Status = getDeviceAttrRaw(HSA_AMD_AGENT_INFO_PRODUCT_NAME, TmpChar);
if (Status == HSA_STATUS_SUCCESS)
- Info.add("Product Name", TmpChar);
+ Info.add("Product Name", TmpChar, "", DeviceInfo::NAME);
Status = getDeviceAttrRaw(HSA_AGENT_INFO_NAME, TmpChar);
if (Status == HSA_STATUS_SUCCESS)
- Info.add("Device Name", TmpChar, "", DeviceInfo::NAME);
+ Info.add("Device Name", TmpChar);
Status = getDeviceAttrRaw(HSA_AGENT_INFO_VENDOR_NAME, TmpChar);
if (Status == HSA_STATUS_SUCCESS)
More information about the llvm-commits
mailing list