File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 88
99include_directories (${CUDAToolkit_INCLUDE_DIRS} )
1010
11- add_flang_library(CufRuntime
11+ # libCufRuntime depends on a certain version of CUDA. To be able to have
12+ # multiple build of this library with different CUDA version, the version is
13+ # added to the library name.
14+ set (CUFRT_LIBNAME CufRuntime_cuda_${CUDAToolkit_VERSION_MAJOR} )
15+
16+ add_flang_library(${CUFRT_LIBNAME}
1217 allocator.cpp
1318 descriptor.cpp
1419)
1924 set (CUDA_RT_TARGET CUDA::cudart_static)
2025endif ()
2126
22- target_link_libraries (CufRuntime
27+ target_link_libraries (${CUFRT_LIBNAME}
2328 PRIVATE
2429 FortranRuntime
2530 ${CUDA_RT_TARGET}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ add_flang_unittest(FlangCufRuntimeTests
66
77target_link_libraries (FlangCufRuntimeTests
88 PRIVATE
9- CufRuntime
9+ CufRuntime_cuda_ ${CUDAToolkit_VERSION_MAJOR}
1010 FortranRuntime
1111)
1212
You can’t perform that action at this time.
0 commit comments