Skip to content

Commit c7d0136

Browse files
committed
cmake: add missing cuda library
1 parent e46a8c8 commit c7d0136

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/testing-macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- 'develop'
77
pull_request:
88

9+
# Workaround issue in Xcode 14.1/2
10+
env:
11+
DEVELOPER_DIR: /Applications/Xcode_14.0.1.app/Contents/Developer
12+
913
jobs:
1014
build-and-test:
1115
runs-on: macos-latest

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ if (USE_ACCEL)
243243
target_link_libraries(
244244
dbcsr
245245
PRIVATE $<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cudart>
246+
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cuda_driver>
246247
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::cublas>
247248
$<$<STREQUAL:${USE_ACCEL},cuda>:CUDA::nvrtc>
248249
$<$<BOOL:${WITH_CUDA_PROFILING}>:CUDA::nvToolsExt>

tools/vecLibFort/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
add_library(vecLibFort STATIC vecLibFort.c)
22

3+
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
4+
target_compile_options(vecLibFort PRIVATE -flax-vector-conversions)
5+
endif ()
6+
37
install(
48
TARGETS vecLibFort
59
EXPORT DBCSRTargets

0 commit comments

Comments
 (0)