summaryrefslogtreecommitdiff
path: root/flang-rt
diff options
context:
space:
mode:
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>2025-09-02 15:22:41 -0700
committerGitHub <noreply@github.com>2025-09-02 15:22:41 -0700
commite57cb26d171bebe78df0a3d008e7f4c14b319067 (patch)
treec0f85c2da37f917447de5a15890e33c47a1fbad9 /flang-rt
parent2bc019d8d02afee096f1c0c19cb2828b526aef94 (diff)
[flang][rt] Remove findloc.cpp from supported_sources fro CUDA build (#156542)
findloc.cpp is causing memory exhaustion with higher compute capabilities. Also it is a very expensive file to build. Remove it from the supported_sources for CUDA build until we can lower its memory footprint.
Diffstat (limited to 'flang-rt')
-rw-r--r--flang-rt/lib/runtime/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/flang-rt/lib/runtime/CMakeLists.txt b/flang-rt/lib/runtime/CMakeLists.txt
index e8f70bd544e0..6548ec955b2b 100644
--- a/flang-rt/lib/runtime/CMakeLists.txt
+++ b/flang-rt/lib/runtime/CMakeLists.txt
@@ -178,6 +178,9 @@ endif ()
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn|^nvptx")
set(sources ${gpu_sources})
elseif(FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
+ # findloc.cpp has some issues with higher compute capability. Remove it
+ # from CUDA build until we can lower its memory footprint.
+ list(REMOVE_ITEM supported_sources findloc.cpp)
set(sources ${supported_sources})
else ()
set(sources ${supported_sources} ${host_sources} ${f128_sources})