Docker: Re-Enable torch, ace, and greenX for sdbg build

This commit is contained in:
Ole Schütt 2025-07-21 10:34:10 +02:00 committed by Ole Schütt
parent 74e72cda6e
commit 12a8a74dd0
2 changed files with 2 additions and 9 deletions

View file

@ -79,20 +79,12 @@ elif [[ "${PROFILE}" == "toolchain_all" ]] && [[ "${VERSION}" == "pdbg" ]]; then
CMAKE_EXIT_CODE=$?
elif [[ "${PROFILE}" == "toolchain_all" ]] && [[ "${VERSION}" == "sdbg" ]]; then
# TODO Re-enable LIBTORCH and ACE. For some reason they currently lead to a
# floating-point exception in `fit_and_continuation_2pole()` at rpa_gw.F:3979.
#
# TODO Re-enable GREENX. It currently leads to a floating-point exception
# in `greenx_get_minimax_grid()` at greenx_interface.F:314.
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE="Debug" \
-DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
-DCP2K_USE_EVERYTHING=ON \
-DCP2K_USE_MPI=OFF \
-DCP2K_USE_LIBTORCH=OFF \
-DCP2K_USE_ACE=OFF \
-DCP2K_USE_GREENX=OFF \
-Werror=dev \
.. |& tee ./cmake.log
CMAKE_EXIT_CODE=$?

View file

@ -1717,7 +1717,6 @@ target_link_libraries(
$<$<AND:$<BOOL:${CP2K_USE_FFTW3_}>,$<BOOL:${CP2K_ENABLE_FFTW3_OPENMP_SUPPORT}>>:cp2k::FFTW3::fftw3_omp>
$<$<BOOL:${CP2K_USE_SPLA}>:SPLA::spla>
$<$<BOOL:${CP2K_USE_LIBINT2}>:cp2k::Libint2::int2>
$<$<BOOL:${CP2K_USE_LIBTORCH}>:${TORCH_LIBRARIES}>
$<$<BOOL:${CP2K_USE_COSMA}>:cosma::cosma_prefixed_pxgemm>
$<$<BOOL:${CP2K_USE_COSMA}>:cosma::cosma>
$<$<BOOL:${CP2K_USE_DLAF}>:DLAF::Fortran>
@ -1730,6 +1729,8 @@ target_link_libraries(
DBCSR::dbcsr
$<$<BOOL:${CP2K_USE_MPI}>:cp2k::SCALAPACK::scalapack>
cp2k_linalg_libs
# Torch includes some LAPACK routines, but with floating-point exceptions.
$<$<BOOL:${CP2K_USE_LIBTORCH}>:${TORCH_LIBRARIES}>
$<$<AND:$<CONFIG:COVERAGE>,$<Fortran_COMPILER_ID:GNU>>:gcov>)
string(TIMESTAMP CP2K_TIMESTAMP "%Y-%m-%d %H:%M:%S")