From 5e46bb3cede845158352d899790ce3a36f19b3ae Mon Sep 17 00:00:00 2001 From: Mathieu Taillefumier Date: Sat, 7 Jun 2025 16:20:35 +0200 Subject: [PATCH] [cmake] Update cuda standard to c++14 gcc 14 and cuda 12.8:12.9 require c++14 to work properly. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12935ffe3c..fe42d9e270 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules") # if(NOT DEFINED CMAKE_CUDA_STANDARD) - set(CMAKE_CUDA_STANDARD 11) + set(CMAKE_CUDA_STANDARD 14) set(CMAKE_CUDA_STANDARD_REQUIRED ON) endif() @@ -213,6 +213,11 @@ cmake_dependent_option( "Enable SpLA dgemm offloading (only valid with GPU support on)" "(NOT CP2K_USE_ACCEL MATCHES \"NONE\") AND (CP2K_USE_SPLA)" OFF) +cmake_dependent_option( + CP2K_USE_LIBVDWXC OFF + "Compile CP2K with libvdwxc support when SIRIUS is compiled with it" + "CP2K_USE_SIRIUS" OFF) + set(CP2K_BLAS_VENDOR "auto" CACHE STRING "BLAS library for computations on host")