[llvm] Fix to account for multiple ISA enumeration (PR #118676)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 10:07:54 PST 2024
https://github.com/hidekisaito created https://github.com/llvm/llvm-project/pull/118676
None
>From 534ca895f2dd16a3cd55de1aba84a88c117ae0c4 Mon Sep 17 00:00:00 2001
From: Hideki Saito <hidekido at amd.com>
Date: Wed, 4 Dec 2024 11:59:47 -0600
Subject: [PATCH] Fix to account for multiple ISA enumeration
---
offload/plugins-nextgen/amdgpu/src/rtl.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offload/plugins-nextgen/amdgpu/src/rtl.cpp b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
index 22c8079ab5812f..d74e65d4165679 100644
--- a/offload/plugins-nextgen/amdgpu/src/rtl.cpp
+++ b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
@@ -207,7 +207,7 @@ Expected<std::string> getTargetTripleAndFeatures(hsa_agent_t Agent) {
llvm::StringRef TripleTarget(ISAName.begin(), Length);
if (TripleTarget.consume_front("amdgcn-amd-amdhsa"))
Target = TripleTarget.ltrim('-').rtrim('\0').str();
- return HSA_STATUS_SUCCESS;
+ return HSA_STATUS_INFO_BREAK;
});
if (Err)
return Err;
More information about the llvm-commits
mailing list