summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-09-19 13:09:52 -0500
committerGitHub <noreply@github.com>2025-09-19 13:09:52 -0500
commit2d503b924c324f7f67ef8b1f5c518c1f80a2825b (patch)
tree710a60370582a4bc31a375f89dbb8ed8304e9b95 /openmp
parent8fcb712167fa809af9bec2ffcfe1ac1b8c5e4aa6 (diff)
[LLVM] Simplify GPU runtimes flag handling (#159802)
Summary: The AMDGPU hack can be removed, and we no longer need to skip 90% of the `HandleLLVMOptions` if we work around NVPTX earlier. Simplifies the interface by removing duplicated logic and keeps the GPU targets from being weirdly divergent on some flags.
Diffstat (limited to 'openmp')
-rw-r--r--openmp/CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
index 1358e896d3cc..a2b7e1054e02 100644
--- a/openmp/CMakeLists.txt
+++ b/openmp/CMakeLists.txt
@@ -99,14 +99,6 @@ else()
set(CMAKE_CXX_EXTENSIONS NO)
endif()
-# Targeting the GPU directly requires a few flags to make CMake happy.
-if("${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^amdgcn")
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nogpulib")
-elseif("${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^nvptx")
- set(CMAKE_REQUIRED_FLAGS
- "${CMAKE_REQUIRED_FLAGS} -flto -c -Wno-unused-command-line-argument")
-endif()
-
# Check and set up common compiler flags.
include(config-ix)
include(HandleOpenMPOptions)