Commit graph

157 commits

Author SHA1 Message Date
Frederick Stein
3caaa28e3b
Bump fortitude to version 0.9.0 and consider some of its new rules (#5597) 2026-07-17 08:19:44 +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
HE Zilong
d275998fba
Precommit: check for CPASSERT(.FALSE.), and empty CPABORT() (#5491) 2026-07-03 12:09:01 +02:00
Taillefumier Mathieu
695da86d0c
Grid gpu engines merge (#5206)
Co-authored-by: Mathieu Taillefumier <mathieu.taillefumier@free.fr>
2026-05-16 19:18:57 +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
Matthias Krack
a78533eb1f Apply prettifier again to spack package files 2026-03-25 13:11:56 +01:00
dependabot[bot]
2f0b2b8824
Bump black from 26.1.0 to 26.3.1 in /tools/precommit (#4948)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-13 12:55:13 +01:00
Matthias Krack
4180bf53f7 Add timeout flag and allow for flags using make_pretty.sh
Using "make_pretty.sh -j 1 -t 2" is often more likely to work than increasing the (hardwired) timeout value
2026-02-27 20:42:16 +01:00
Ole Schütt
aaa93fa739
precommit: Increase timeout for shellcheck to 30s (#4887) 2026-02-27 16:14:28 +01:00
Ole Schütt
4e03334606 precommit: Update Python packages and re-format 2026-02-24 17:11:52 +01:00
Ole Schütt
fc91f74b85 precommit: Increase timeout for shellcheck 2026-02-17 12:32:20 +01:00
Matthias Krack
00eebaaad3 Suppress pretty for spack package files 2026-02-07 19:32:03 +01:00
Hans Pabst
8ebf9ad0d0 ELPA: introduced ELPA_ONE_STAGE and revised ELPA_QR/UNSAFE
- Introduced ELPA_ONE_STAGE (see #4683).
- QR factorization (unsafe is now internal).
- Removed keyword ELPA_QR_UNSAFE.
- Updated to ELPA 2025.06.002.
- Disabled IEEE exceptions.
- Test coverage.
2026-01-21 13:33:40 +01:00
Ole Schütt
cc4239a96c CMake: Set -D__NO_STATM_ACCESS on BSD 2026-01-13 13:58:58 +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
dependabot[bot]
62f3f8ee30 Bump werkzeug from 3.1.4 to 3.1.5 in /tools/precommit
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.1.4...3.1.5)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-version: 3.1.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-09 08:55:31 +01:00
Matthias Krack
78931c6763 Spack requires "spack_repo" to be in the repo path 2026-01-07 15:59:19 +01:00
Ole Schütt
166a3353c1 openPMD: Rename some files and fix conventions 2026-01-06 15:44:37 +01:00
Ole Schütt
391ac323bf precommit: Increase local timeout to 30 seconds 2026-01-06 15:44:37 +01:00
Franz Pöschel
7c648bcc1f
Add openPMD output 2026-01-06 12:57:32 +01:00
Ole Schütt
449fa423b8 Remove flag __FFTW3_UNALIGNED 2025-12-19 15:01:55 +01:00
Ole Schütt
a53587514b Docs: Move content from INSTALL.md to manual and adopt to CMake 2025-12-18 17:44:29 +01:00
Ole Schütt
633ab399f6 CMake: Make __OFFLOAD_PROFILING flag accessible 2025-12-18 14:59:53 +01:00
Ole Schütt
53d694d2f1 FM: Use __OFFLOAD flags for ELPA as well 2025-12-18 14:59:53 +01:00
Ole Schütt
7bf99f7a74 Remove old flags __HAS_PATCHED_CUFFT_70, __NO_MPI_THREAD_SUPPORT_CHECK, and __MINGW 2025-12-18 14:59:53 +01:00
Ole Schütt
de43aba82f Remove QUIP 2025-12-18 13:07:03 +01:00
Ole Schütt
9e35fc8c04 Precommit: Add Check for docu of CMake options 2025-12-17 15:56:06 +01:00
Ole Schütt
88de2562c6 Precommit: Update check for build flags 2025-12-17 15:56:06 +01:00
dependabot[bot]
ccabb9a0f8 Bump werkzeug from 3.0.6 to 3.1.4 in /tools/precommit
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.6 to 3.1.4.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.6...3.1.4)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-version: 3.1.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 14:42:43 +01:00
Ole Schütt
44e3845b0f Enable Fortitude rule missing-exit-or-cycle-label 2025-11-07 16:48:14 +01:00
Ole Schütt
9e1cd629dd Enable Fortitude rule unnamed-end-statement 2025-11-07 16:48:14 +01:00
Ole Schütt
b08f77308b Enable Fortitude rule deprecated-relational-operator 2025-11-07 16:48:14 +01:00
Ole Schütt
47c81db72a Enable Fortitude rule old-style-array-literal 2025-11-07 16:48:14 +01:00
Ole Schütt
51bfb724f4 Enable some fortitude rules 2025-11-06 16:37:03 +01:00
Ole Schütt
06728efc41 precommit: Move exclusion list into fortitude.toml 2025-11-06 16:37:03 +01:00
Ole Schütt
6bdde325c8 precommit: Get fortitude auto-fixing to work 2025-11-06 16:37:03 +01:00
Ole Schütt
81d9eb2d59 precommit: Simplify some files to help Fortitude 2025-11-05 16:52:17 +01:00
Ole Schütt
0620b4537c precommit: Add Fortitude linter 2025-11-05 16:52:17 +01:00
Hans Pabst
4a2d255c13 GRID: leverage offload mempool 2025-10-25 21:10:23 +02:00
Hans Pabst
badb79934a Use git ls-files instead of os.walk with pattern
- Avoids processing unrelated files.
2025-10-17 15:25:21 +02:00
Hans Pabst
ad3ce71a45 Restore BSD-3 license for C-based MPI-wrapper 2025-10-17 09:54:57 +02:00
Hans Pabst
50b0971e18 DBM mempool to offload and mpi/c to mpiwrap
- Introduced offload_mempool_stats_print to Fortran API.
- Print memory statistics independent of DBM (and grid).
- Avoid circular dependency (string_utilities/strlcpy_c2f).
- Use up-leveled MPI/C wrapper.

* MPI/C wrapper (dbm_mpi_ to cp_mpi_)
  - Adjusted license of C-MPI wrapper (consequence of mpiwrap).
  - Moved wrapper for C languages in to mpiwrap directory.
  - Avoid name clash (same basename as for Fortran).
  - Renamed prefix of all MPI wrapper functions.

* Other (DBM):
  - Improved handling errors (OFFLOAD_CHECK before launch).
  - Permit/Adjusted preprocessor symbol (precommit hook).
  - Avoid multi-line control-flow w/o curly braces.
  - Double-check #4428 (DBM_MULTIPLY_COMM_MEMPOOL).

* TODO
  - Apply offload/print_func pattern to GRID's print_func.
  - Leverage offload_mempool for grid backend.
2025-09-30 16:02:16 +02:00
Hans Pabst
7face5689e DBM/OFFLOAD: prepared for hybrid execution
- Split backend_upload_packs into two phases on GPU.
- Initial phase is chosen to have not triggered upload.
- Offload: offloadEventQuery to check if GPU is busy.
- Removed dbm_multiply_gpu_download_results
- Transfers are launched as early as possible.
- Improved overlap between transfer/compute.
- Idea: proceed on CPU if GPU is busy.

Other changes:
- Documented way to perform validation (ctx=NULL).
- Permit DBM_ prefix for preprocessor symbols.
- Removed C-shard pointer from GPU-context.
- Per-shard event stored/provided by shard.
- Migrated CPU-options into context.
- Miniapp: allow to omit validation.
- Use preincrement (atomic).
2025-09-04 13:27:08 +02:00
Rocco Meli
400017fac0
Update Spack and add support for Spack packages repository 2025-06-26 08:27:09 +02:00
Ole Schütt
6d377b8c9f Precommit: Format spack packages with upstream style 2025-05-22 18:30:23 +02:00
Harald Forbert
1513aefda2 add ace support 2025-05-06 08:32:16 +02:00
Hans Pabst
0e80b46be4
DBM: optionally reuse DBCSR's libsmm_acc_process (#4109)
- Experimented with specialized vs DBM's universal kernel.
- Performance is equal likey due to data mix/sort (TODO).
- DBCSR/unrelated: Likely introduce DBM-kernel (cleaner).
- Rely on OPENCL_LIBSMM_PFORMAT.

Mempool:
- Revised default to skip mempool for host-allocs if offload
  is not compiled-in or if offload-allocs on host are disabled.
- Renamed and split DBM_ALLOCATION_FACTOR.
- Separate DBM_OVERCOMMIT_DEVICE/HOST.
- More rigid control of mempool config
- Conditionally define mempool lists.

Other:
- Passing batch/task data in const-correct fashion.
- Revised verbose output.
2025-03-28 09:28:11 +01:00
dependabot[bot]
85b7b8c410 Bump gunicorn from 22.0.0 to 23.0.0 in /tools/precommit
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 22.0.0 to 23.0.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/22.0.0...23.0.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 14:21:29 +01:00
Hans Pabst
3018857f05
DBM: solved issues with MPI based memory allocation (#4090)
- Assert correct size scaled by DBM_ALLOCATION_FACTOR.
- OpenCL: adjusted verbose output.
2025-03-21 15:57:59 +01:00
Hans Pabst
4136e1a5fc
DBM: adjusted MPI-based memory allocation (#4085)
- Apparently, MPI_Alloc_mem/free are not fully thread-safe.
- Debug shows issue similar to issues reported elsewhere.
- Note: MPI_Alloc_mem was taken out of critical section.
2025-03-18 22:00:45 +01:00