Skip to content

Commit fee71db

Browse files
committed
Compile CUDA-Fortran with Flang
1 parent 2fb1dea commit fee71db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if (LLVM_TARGET_TRIPLE MATCHES "^ppc|^powerpc")
113113
)
114114
endif ()
115115

116-
list(APPEND supported_sources
116+
list(APPEND host_sources
117117
__cuda_device.f90
118118
cooperative_groups.f90
119119
cudadevice.f90
@@ -216,7 +216,7 @@ endif ()
216216
if (LLVM_RUNTIMES_TARGET MATCHES "^amdgcn|^nvptx")
217217
set(sources ${gpu_sources})
218218
elseif(FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
219-
set(sources ${supported_sources})
219+
set(sources ${supported_sources} ${host_sources})
220220
else ()
221221
set(sources ${supported_sources} ${host_sources} ${f128_sources})
222222
endif ()

0 commit comments

Comments
 (0)