You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix(GPU): correct spin stride of rho in elecstate_pw_op kernel
The GPU kernel indexed the spin components of rho with spin*nrxx, where
nrxx is the wavefunction real-space grid size, while rho is allocated
with charge->nrxx (density grid) as the per-spin stride. For USPP tests
using the double grid the two grids differ, so the spin-down density was
written to the wrong offset and effectively lost. Pass an explicit
rho_stride parameter instead.
Fixes 007_PW_UPF201_USPP_Fe GPU SCF etot being off by 6.07 eV.
* Fix(Test): add rho_stride argument to elecstate_op unit test calls
The elecstate_pw_op operator signature gained a rho_stride parameter in
bc21c53, but the unit test still called it with the old signatures,
breaking the test build. Pass this->nrxx, which matches the stride of
the rho layout used in the test.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* rename rho_stride to nrxx_dense in elecstate_pw_op
---------
Co-authored-by: chengleizheng <you@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments