[llvm] [Offload] Add default for HSA agent type to silence warning (PR #145943)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 10:54:34 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Joseph Huber (jhuber6)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/145943.diff
1 Files Affected:
- (modified) offload/plugins-nextgen/amdgpu/src/rtl.cpp (+3)
``````````diff
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);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/145943
More information about the llvm-commits
mailing list