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 c7d0136
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/testing-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- 'develop'
pull_request:

# Workaround issue in Xcode 14.1/2
env:
DEVELOPER_DIR: /Applications/Xcode_14.0.1.app/Contents/Developer

jobs:
build-and-test:
runs-on: macos-latest
Expand Down
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 c7d0136

Please sign in to comment.