Skip to content

Toolchain: Workaround incorrect ELPA results with GCC 15.2 - #7784

Open
Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:toolchain
Open

Toolchain: Workaround incorrect ELPA results with GCC 15.2#7784
Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:toolchain

Conversation

@Growl1234

@Growl1234 Growl1234 commented Aug 6, 2026

Copy link
Copy Markdown

A GCC 15.2 code-generation bug has caused ELPA's double-complex AVX/AVX2 BLOCK2 kernels to return incorrect eigenvectors (marekandreas/elpa#77).

The issue is reliably reproducible in an ELPA-only test and affects ABACUS LCAO multi-k calculations using ks_solver = genelpa. The eigenvalues remain correct, but the returned eigenvectors have large residual and orthogonality errors, which can subsequently corrupt the density matrix, SCF convergence, total energy, forces, stress, and other wavefunction-dependent quantities.

Affected systems include (at least) Fedora 42 and Ubuntu 26.04 LTS.

Rebuilding the affected ELPA C kernels with -fno-tree-slp-vectorize restores the residual and orthogonality errors to machine precision. Therefore, conditionally add -fno-tree-slp-vectorize to ELPA's CFLAGS when its C compiler is GCC 15.2.

Copilot AI lite review requested due to automatic review settings August 6, 2026 03:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants