[cmake] Update cuda standard to c++14

gcc 14 and cuda 12.8:12.9 require c++14 to work properly.
This commit is contained in:
Mathieu Taillefumier 2025-06-07 16:20:35 +02:00 committed by Ole Schütt
parent c9db3194df
commit 5e46bb3ced

View file

@ -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")