Commit 6ef7d52
abacus_fixer
fix(exx): add explicit template instantiation in op_pw_exx_ace.cpp
op_pw_exx_ace.cpp defines ACE-specific template members
(act_op_ace, construct_ace, cal_exx_energy_ace) but lacked explicit
instantiations. The extern template class declaration in op_pw_exx.h
suppressed implicit instantiation everywhere, and the template class
instantiations in op_pw_exx.cpp could not see definitions in this
translation unit, leading to linker undefined reference errors.
Add template class instantiations for CPU and GPU variants at the end
of op_pw_exx_ace.cpp so these members emit symbols.1 parent ec160ec commit 6ef7d52
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
323 | 332 | | |
0 commit comments