Commit graph

150 commits

Author SHA1 Message Date
Jiacheng Xu
4ca962cc2c
CMake: Fix dependent option declarations (#5601) 2026-07-17 14:16:57 +02:00
SY Wang
df8ab74de5
CMake: Move out-of-source builds requirement more ahead (#5585) 2026-07-17 13:05:07 +02:00
Ole Schütt
7a5c6862f4
Increase development version after 2026.2 release (#5593) 2026-07-15 13:25:49 +02:00
Matthias Krack
b7af1c16c0
Simplify spack recipe for libfci (#5562) 2026-07-09 16:58:20 +02:00
Taillefumier Mathieu
f50e850e17
[cmake] Cleanup accross the entire build system (#5527)
Co-authored-by: Mathieu Taillefumier <mathieu.taillefumier@free.fr>
2026-07-04 20:36:14 +02:00
Marcello Puligheddu
de7340f8be
PR for adding libGint to CP2K (#5446) 2026-07-02 14:30:11 +02:00
SY Wang
701d1e8c46
[CMake] Make CP2K_USE_OPENPMD part of CP2K_USE_EVERYTHING 2026-07-01 16:37:23 +02:00
SY Wang
cbb202218e
CMake: Move GPU architectures setup before calling find_package(dbcsr) (#5483) 2026-06-29 15:39:04 +02:00
SY Wang
392e7d2ee1
CMake: Remove duplicated option setting (#5473) 2026-06-28 22:16:04 +02:00
SY Wang
ab143295cb
CMake: Reformat status summary (#5466) 2026-06-27 11:39:25 +02:00
Frederick Stein
d31e8a02de
Add the hint regarding FFTW to the description of libraries (#5461) 2026-06-25 15:17:07 +02:00
Frederick Stein
a0c7eec525
Add hint regarding missing FFTW3 (#5454) 2026-06-25 11:26:47 +02:00
SY Wang
f3f9c0959e
Toolchain: Move libFCI installation to stage7 (#5442) 2026-06-24 13:27:56 +02:00
SY Wang
5fdc47cff4
Toolchain: Add Eigen3 and Remove FindLibint2.cmake (#5427) 2026-06-23 21:49:03 +02:00
SY Wang
85b8a9b49c
Attempt to fix CMake and toolchain behavior regarding LibXS path (#5365)
Co-authored-by: Taillefumier Mathieu <29380261+mtaillefumier@users.noreply.github.com>
Co-authored-by: Hans Pabst <hans.pabst@intel.com>
2026-06-13 14:58:02 +02:00
Hans Pabst
2e4a83415a
Reintegrate with LIBXS, LIBXSTREAM, and LIBXSMM (#5343)
* LIBXS (https://libxs.readthedocs.io/) foundational library.
  - Implements SMMs with different JIT providers, e.g., MKL-JIT.
  - LIBXSMM only provides kernels (reg. upstream version).
* LIBXSTREAM (https://libxstream.readthedocs.io/).
  - Revised OpenCL backend now formally separate.
* CMake and Toolchain
  - Eliminated mkl_sequential/mkl_gnu_thread mismatch.
  - Toolchain adjusted for libxs/libxstream/libxsmm.
  - Case-insensitive CP2K_USE_ACCEL.  
    DBCSR originally wanted lower case.  
    This is to harmonize with DBCSR.
  - Allow CP2K's FYPP to be used for DBCSR.
    This enables DBCSR Tarball versions.
* Regenerated all Docker recipes.
  - This make FYPP available for DBCSR build.
  - This enables DBCSR Tarball versions.
2026-06-05 20:23:52 +02:00
SY Wang
db060cbc84
Toolchain: lammps-pace (ACE) 2023.11.25.fix2 -> 2025.12.4.p1 (#5320) 2026-05-31 14:37:26 +02:00
Sebastian Ehlert
ba924cc32c
Add libxsmm explicitly to the link libraries (#5292) 2026-05-26 12:53:08 +02:00
SY Wang
6768d83bf2
Apply popt/sopt symlinks to Fedora RPM-build (#5268) 2026-05-22 23:35:18 +02:00
Dynamics of Condensed Matter
b8318cf64b
Follow up GauXC/SKALA integration after #5084 (#5244)
Co-authored-by: Thomas D. Kuehne <tkuehne@cp2k.org>
2026-05-19 16:05:06 +02:00
Franz Pöschel
1dd88fb0fa
[WIP] Skala functional via GauXC for XC energy evaluation using deep learning models (#5084)
Co-authored-by: Thomas D. Kuehne <tkuehne@cp2k.org>
2026-05-18 18:37:12 +02:00
Dynamics of Condensed Matter
c523002d91
Add LibFCI active-space solver (#5167)
Co-authored-by: Thomas D. Kuehne <tkuehne@cp2k.org>
2026-05-12 19:36:10 +02:00
Dynamics of Condensed Matter
ce370e297b
Update DFTD4/simple-dftd3 toolchain patches 2026-05-07 10:05:37 +02:00
Dynamics of Condensed Matter
c7270bbdb5
Diagonalization: add opt-in direct generalized eigensolvers (#5108)
Co-authored-by: DCM-Uni-Paderborn <DCM-Uni-Paderborn@users.noreply.github.com>
Co-authored-by: Thomas D. Kuehne <tkuehne@cp2k.org>
2026-05-05 16:26:45 +02:00
SY Wang
3a22a26910
Toolchain SIRIUS (#5098) 2026-04-26 22:07:14 +02:00
Dynamics of Condensed Matter
0262abc151
Prefer include directories from the selected Libint package (#5092)
Co-authored-by: Thomas Kühne <tkuehne@MacBook-Pro-von-Thomas-3.local>
2026-04-24 14:08:16 +02:00
SY Wang
c6fc4eb94e
Add v4.0.x API of DFT-D4 (#4964) 2026-03-25 09:40:09 +01:00
Growl
64b2f279eb Simplify CMake options output in toolchain 2026-03-19 12:37:54 +01:00
HE Zilong
01d6ff2c5b
Toolchain: improve generate_cmake_options.sh (#4928) 2026-03-13 22:28:38 +01:00
SY Wang
52b94d0137
CMake: Make "require out-of-source builds" valid (#4876) 2026-02-24 12:06:05 +01:00
Growl
aab5fe999c Reset default libdir in CMakeLists.txt 2026-02-20 09:20:35 +01:00
Mathieu Taillefumier
2064daf5fd Add DBCSR cmake configuration check. Apply only to DBCSR > 2.9.1 2026-02-17 18:11:09 +01:00
SY Wang
c3c8c31c59
CMake: Restore creation of popt/sopt symlink 2026-02-10 12:00:34 +01:00
SY Wang
e644ccc3b3
Toolchain: Several tweaks and fixes 2026-02-02 12:30:54 +01:00
Teodoro Laino
c44cda2601 Use string(APPEND) for linker flags to prevent unintentional semicolon-separated list conversion. 2026-01-09 21:51:22 +01:00
Matthias Krack
5b4ee1e0cd Add script to build CP2K using Spack/CMake locally
This script should facilitate the CP2K development as a replacement for
the Makefile and the Toolchain while keep everything local and versatile.

It builds CP2K using Spack and CMake locally within the folder CP2K_ROOT
which defaults to the current working directory. This should be a
"cp2k/" folder containing the CP2K source tree.

The script can either be sourced with

> source ./make_cp2k.sh

or run in a subshell with

> ./make_cp2k.sh

The flags -h or --help print the available options.

The first run will take longer as it will build all CP2K dependencies
with Spack. The Spack installation is kept fully local in the subfolder
cp2k/spack which corresponds to the tools/toolchain/install folder
created by the CP2K toolchain.

Subsequent runs of the script will use the software stack from that
cp2k/spack/ folder.

A rebuild of all CP2K dependencies can be enforced simply by removing
or renaming the folder cp2k/spack. The latter allows for keeping different
software stacks.

It is recommended to install podman to take advantage of a spack cache.
This will accelerate the build of the CP2K dependencies with Spack
significantly.

After the CP2K dependencies are built with Spack, CP2K itself is built
and installed using CMake in the subfolders cp2k/build and cp2k/install.

Subsequent runs of the script will use the CMake configuration in the
subfolder cp2k/build. A rebuild of CP2K from scratch can be enforced
by removing or renaming that subfolder.

A CP2K regression run can be launched automatically by adding the flag
-t "" (or --test ""). This flag expects a string with the TESTOPTS, e.g.

> source ./make_cp2k.sh -t "--restrictdir QS/regtest-gpw-1"

Alternatively, the script cp2k/install/run_tests can be launched after
a successful CP2K build.
2026-01-09 11:56:57 +01:00
Hans Pabst
ffde6a3702 ELPA: compile-time choice for solver-kind
- For the OpenCL based GPU code-path, or by choice, ELPA may not be built with GPU support.
- Introduced __NO_OFFLOAD_ELPA to allow CPU-only ELPA (related to #4617).
- Allow compile-time selection of ELPA solver-kind (1-stage vs 2-stage).
- For ELPA/SYCL, use 1-stage ELPA solver by default for the time being.
- ELPA/SYCL (MKL in general?) has an index-fix currently only in a branch.

Index/ILP issue (undefined behavior):
- ELPA eventually mismatches index-kinds (LP64 vs ILP64 when linking BLAS/MKL).
- For static linkage it usually does not not matter (at least CPU-only).
- CP2K links the correct BLAS flavor (SO and GPU-build may be affected?).
- ELPA 2-stage may be even affected beyond MKL (or for GPU in general).
- ELPA 1-stage is apparently not affected by index issue.
2026-01-09 10:44:52 +01:00
Franz Pöschel
7c648bcc1f
Add openPMD output 2026-01-06 12:57:32 +01:00
Ole Schütt
731b0ae562 Increase development version after 2026.1 release 2026-01-06 11:04:01 +01:00
Ole Schütt
ec136938e7 CMake: Remove defunct option CP2K_USE_STATIC_BLAS 2026-01-04 21:57:54 +01:00
Ole Schütt
1296fc9c28 update to 2026 2026-01-01 16:06:41 +01:00
Ole Schütt
ae67b7efe0 Various little tweaks 2025-12-31 17:51:34 +01:00
antalik
ee2a10ba22
Add interface to the MiMiC framework for multiscale simulations 2025-12-28 15:00:33 +01:00
Taillefumier Mathieu
ab76537063
[cmake] Added CRAY power management counters support 2025-12-20 10:52:32 +01:00
Ole Schütt
d88cc65c55 Remove flag __LIBGRPP 2025-12-19 15:01:55 +01:00
Taillefumier Mathieu
388ddf7259
Fix typo in vdw functional name and various CMake issues 2025-12-19 11:31:12 +01:00
Ole Schütt
633ab399f6 CMake: Make __OFFLOAD_PROFILING flag accessible 2025-12-18 14:59:53 +01:00
Ole Schütt
e1f948e013 Docker: Enable SpLA GEMM offloading for CMake CUDA builds 2025-10-22 22:48:49 +02:00
Hans Pabst
b3f27d980e CMake: fixed OpenCL build dependency
- Rely on add_custom_command.
- Improved status messages.
2025-09-04 20:28:39 +02:00
Matthias Krack
1aa03dac43 Do not set INSTALL_LIBDIR 2025-08-20 10:53:47 +02:00