[llvm] [Offload] Fix disabling of cuda target on unsupported platforms (PR #106835)
WÁNG Xuěruì via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 31 01:37:33 PDT 2024
https://github.com/xen0n created https://github.com/llvm/llvm-project/pull/106835
The target name and the message are wrong -- both should say "cuda" for the filtering to work.
Fixes commit 300e5b911442 (#93186).
>From d7df0d0a593b7a5939156acdcd62f84c8002f3fd Mon Sep 17 00:00:00 2001
From: WANG Xuerui <git at xen0n.name>
Date: Sat, 31 Aug 2024 16:29:23 +0800
Subject: [PATCH] [Offload] Fix disabling of cuda target on unsupported
platforms
The target name and the message are wrong -- both should say "cuda" for
the filtering to work.
Fixes commit 300e5b911442 (#93186).
---
offload/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/offload/CMakeLists.txt b/offload/CMakeLists.txt
index 4cd97a6a5ff63d..d91b5fa1959295 100644
--- a/offload/CMakeLists.txt
+++ b/offload/CMakeLists.txt
@@ -159,8 +159,8 @@ if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$"
"Linux x86_64, ppc64le, or aarch64 hosts")
list(REMOVE_ITEM LIBOMPTARGET_PLUGINS_TO_BUILD "amdgpu")
endif()
- if("nvptx" IN_LIST LIBOMPTARGET_PLUGINS_TO_BUILD)
- message(STATUS "Not building CUDA plugin: only support AMDGPU in "
+ if("cuda" IN_LIST LIBOMPTARGET_PLUGINS_TO_BUILD)
+ message(STATUS "Not building CUDA plugin: only support CUDA in "
"Linux x86_64, ppc64le, or aarch64 hosts")
list(REMOVE_ITEM LIBOMPTARGET_PLUGINS_TO_BUILD "cuda")
endif()
More information about the llvm-commits
mailing list