[llvm] [flang][rt] Remove findloc.cpp from supported_sources fro CUDA build (PR #156542)

Valentin Clement バレンタイン クレメン via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 15:00:29 PDT 2025


https://github.com/clementval created https://github.com/llvm/llvm-project/pull/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. 

>From 7fcc336f8e95fb77fc42da35ee7125b61114c9ff Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Tue, 2 Sep 2025 14:59:04 -0700
Subject: [PATCH] [flang][rt] Remove findloc.cpp from supported_sources fro
 CUDA build

---
 flang-rt/lib/runtime/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/flang-rt/lib/runtime/CMakeLists.txt b/flang-rt/lib/runtime/CMakeLists.txt
index e8f70bd544e0b..6548ec955b2b8 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})



More information about the llvm-commits mailing list