[llvm] [Offload] Enable the AMDGPU plugin on Linux loongarch64 hosts (PR #223620)
Gleb Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 00:59:01 PDT 2026
https://github.com/arrowd created https://github.com/llvm/llvm-project/pull/223620
This change is similar to #220444 that added support for riscv64
>From 1e129eb599fe862594c4b27ef9fdf3cc586c6511 Mon Sep 17 00:00:00 2001
From: Gleb Popov <6yearold at gmail.com>
Date: Tue, 15 Sep 2026 10:56:29 +0300
Subject: [PATCH] [Offload] Enable the AMDGPU plugin on Linux loongarch64 hosts
This change is similar to #220444 that added support for riscv64
---
offload/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/offload/CMakeLists.txt b/offload/CMakeLists.txt
index ade372c3232ef9..4c35b6d255e503 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()
More information about the llvm-commits
mailing list