Skip to content

Commit

Permalink
cmake: add missing cuda library
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed May 12, 2023
1 parent e46a8c8 commit 92fc326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ if (USE_ACCEL)
target_link_libraries(
dbcsr
PRIVATE $<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cudart>
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cuda_driver>
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cublas>
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::nvrtc>
$<$<BOOL:${WITH_CUDA_PROFILING}>:CUDA::nvToolsExt>
Expand Down
4 changes: 4 additions & 0 deletions tools/vecLibFort/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
add_library(vecLibFort STATIC vecLibFort.c)

if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(vecLibFort PRIVATE -flax-vector-conversions)
endif ()

install(
TARGETS vecLibFort
EXPORT DBCSRTargets
Expand Down

0 comments on commit 92fc326

Please sign in to comment.