[llvm] [Offload] For AMDGPU driver, use product name (PR #155632)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 08:02:14 PDT 2025
================
@@ -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);
----------------
arsenm wrote:
Device Name should be "gfxXXX", product name is whatever
https://github.com/llvm/llvm-project/pull/155632
More information about the llvm-commits
mailing list