From c7d013663ec3819b5bccf730340d997ff66183b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiziano=20M=C3=BCller?= Date: Fri, 12 May 2023 12:23:46 +0200 Subject: [PATCH] cmake: add missing cuda library --- .github/workflows/testing-macos.yml | 4 ++++ src/CMakeLists.txt | 1 + tools/vecLibFort/CMakeLists.txt | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/testing-macos.yml b/.github/workflows/testing-macos.yml index 5d32ea8b48a..08480000a4b 100644 --- a/.github/workflows/testing-macos.yml +++ b/.github/workflows/testing-macos.yml @@ -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 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 929504a604d..951c510b86c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -243,6 +243,7 @@ if (USE_ACCEL) target_link_libraries( dbcsr PRIVATE $<$:CUDA::cudart> + $<$:CUDA::cuda_driver> $<$:CUDA::cublas> $<$:CUDA::nvrtc> $<$:CUDA::nvToolsExt> diff --git a/tools/vecLibFort/CMakeLists.txt b/tools/vecLibFort/CMakeLists.txt index 9fa4f450c7d..a36b6e15508 100644 --- a/tools/vecLibFort/CMakeLists.txt +++ b/tools/vecLibFort/CMakeLists.txt @@ -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