[llvm] [Offload] Add default for HSA agent type to silence warning (PR #145943)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 10:54:05 PDT 2025
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/145943
Summary:
There's a new one called the AIE (AI Engine). We could handle this, but
since we don't use it currently I'm just making it future-proof. Adding
the AIE check would require checking the HSA version which isn't
worthwhile just yet.
>From 69fa29251f51caef1de0ee952fcbb09bd1855ea2 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Thu, 26 Jun 2025 12:52:13 -0500
Subject: [PATCH] [Offload] Add default for HSA agent type to silence warning
Summary:
There's a new one called the AIE (AI Engine). We could handle this, but
since we don't use it currently I'm just making it future-proof. Adding
the AIE check would require checking the HSA version which isn't
worthwhile just yet.
---
offload/plugins-nextgen/amdgpu/src/rtl.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/offload/plugins-nextgen/amdgpu/src/rtl.cpp b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
index bc1a768feafdd..35cb297f65188 100644
--- a/offload/plugins-nextgen/amdgpu/src/rtl.cpp
+++ b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
@@ -2591,6 +2591,9 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
case HSA_DEVICE_TYPE_DSP:
TmpCharPtr = "DSP";
break;
+ default:
+ TmpCharPtr = "Unknown";
+ break;
}
Info.add("Device Type", TmpCharPtr);
}
More information about the llvm-commits
mailing list