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
Browse filesBrowse the repository at this point in the historyBrowse files
abacus_fixer
committed
fix(exx): declare explicit specializations before extern template instantiation
The extern template class declarations in op_pw_exx.h trigger implicit
instantiation of all template members when the header is included. The
explicit specializations of cal_density_recip and rho_recip2real in the
.cpp file were therefore "after instantiation", causing a compile error.
Fix by adding forward declarations of all 8 explicit specializations
(CPU + GPU, cal_density_recip + rho_recip2real, complex<double> +
complex<float>) in the header, placed before the extern template block.
0 commit comments