Skip to content

Commit e57cb26

Browse files
authored
[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.
1 parent 2bc019d commit e57cb26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ endif ()
178178
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn|^nvptx")
179179
set(sources ${gpu_sources})
180180
elseif(FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
181+
# findloc.cpp has some issues with higher compute capability. Remove it
182+
# from CUDA build until we can lower its memory footprint.
183+
list(REMOVE_ITEM supported_sources findloc.cpp)
181184
set(sources ${supported_sources})
182185
else ()
183186
set(sources ${supported_sources} ${host_sources} ${f128_sources})

0 commit comments

Comments
 (0)