Skip to content

Commit 75545b3

Browse files
authored
[Offload] Fix disabling of cuda target on unsupported platforms (#106835)
The target name and the message are wrong -- both should say "cuda" for the filtering to work. Fixes commit 300e5b9 (#93186).
1 parent b0276ec commit 75545b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

offload/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$"
159159
"Linux x86_64, ppc64le, or aarch64 hosts")
160160
list(REMOVE_ITEM LIBOMPTARGET_PLUGINS_TO_BUILD "amdgpu")
161161
endif()
162-
if("nvptx" IN_LIST LIBOMPTARGET_PLUGINS_TO_BUILD)
163-
message(STATUS "Not building CUDA plugin: only support AMDGPU in "
162+
if("cuda" IN_LIST LIBOMPTARGET_PLUGINS_TO_BUILD)
163+
message(STATUS "Not building CUDA plugin: only support CUDA in "
164164
"Linux x86_64, ppc64le, or aarch64 hosts")
165165
list(REMOVE_ITEM LIBOMPTARGET_PLUGINS_TO_BUILD "cuda")
166166
endif()

0 commit comments

Comments
 (0)