[llvm] [Offload] Enable the AMDGPU plugin on Linux loongarch64 hosts (PR #223620)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 00:59:49 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-offload
Author: Gleb Popov (arrowd)
<details>
<summary>Changes</summary>
This change is similar to #<!-- -->220444 that added support for riscv64
---
Full diff: https://github.com/llvm/llvm-project/pull/223620.diff
1 Files Affected:
- (modified) offload/CMakeLists.txt (+2-2)
``````````diff
diff --git a/offload/CMakeLists.txt b/offload/CMakeLists.txt
index ade372c3232ef..4c35b6d255e50 100644
--- a/offload/CMakeLists.txt
+++ b/offload/CMakeLists.txt
@@ -171,11 +171,11 @@ endif()
list(APPEND LIBOMPTARGET_PLUGINS_TO_BUILD "host")
list(REMOVE_DUPLICATES LIBOMPTARGET_PLUGINS_TO_BUILD)
-if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)|(riscv64)$"
+if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)|(riscv64)|(loongarch64)$"
AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
if("amdgpu" IN_LIST LIBOMPTARGET_PLUGINS_TO_BUILD)
message(STATUS "Not building AMDGPU plugin: only support AMDGPU in "
- "Linux x86_64, ppc64le, aarch64, or riscv64 hosts")
+ "Linux x86_64, ppc64le, aarch64, riscv64 or loongarch64 hosts")
list(REMOVE_ITEM LIBOMPTARGET_PLUGINS_TO_BUILD "amdgpu")
endif()
endif()
``````````
</details>
https://github.com/llvm/llvm-project/pull/223620
More information about the llvm-commits
mailing list