From df5097dd946e04022e2f4a8024564d8412f416f5 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 26 Jun 2025 14:46:08 -0500 Subject: [PATCH] [Offload] Add default for HSA agent type to silence warning (#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. --- 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 bc1a768feafd..35cb297f6518 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); }