Skip to content

Fix OpenMP compiler warnings in FFT and archive deserialization - #592

Open
aaadelmann wants to merge 5 commits into
masterfrom
fix-warnings
Open

Fix OpenMP compiler warnings in FFT and archive deserialization#592
aaadelmann wants to merge 5 commits into
masterfrom
fix-warnings

Conversation

@aaadelmann

@aaadelmann aaadelmann commented Aug 14, 2026

Copy link
Copy Markdown
Member

Title

Fix OpenMP & HIP compiler warnings in FFT and archive deserialization

PR description

Summary

This PR fixes compiler warnings reported by the OpenMP & HIP builds without disabling warnings or adding compiler-specific switches.

  • Mark the 3D-only g2 and m2 variables in PrunedCC.h as [[maybe_unused]].
  • Remove temporary scalar values from vector archive deserialization.
  • Copy serialized bytes directly into the destination vector components.
  • Apply the archive change to both regular and offset deserialization.

This addresses the warnings from:

Testing

All green at https://my.cdash.org/index.php?project=IPPL

Release OpenMP build with GCC 15.2:

  • 1 MPI rank: 41/41 unit tests passed
  • 2 MPI ranks: 41/41 unit tests passed
  • 4 MPI ranks: 40/41 unit tests passed

At four ranks, NedelecSpace fails because its test domain supports at most three partitions. All communication, particle-update, FFT, and NUFFT tests passed at four ranks.

The reported PrunedCC.h and Archive.hpp warnings no longer appear.

ToDo

A separate PR for the G200 these are architectural

@aaadelmann aaadelmann self-assigned this Aug 14, 2026
@aaadelmann

Copy link
Copy Markdown
Member Author

cscs-ci run cscs-ci-gh200, cscs-ci-mi300, cscs-ci-openmp

aaadelmann and others added 3 commits August 14, 2026 23:37
Use std::cmp_greater when checking the iteration range against the
hash view extent to avoid mixed-sign comparison warnings.
Initialize the charge entrance flag and bunching factor before use to
eliminate Release-build maybe-uninitialized warnings.
@aaadelmann
aaadelmann requested review from rammann and srikrrish and removed request for srikrrish August 15, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant