Commit 1f817bd
dyzheng
Fix(CUDA): add missing isk parameter to DeltaSpin force kernel GPU version
The CUDA GPU version of cal_force_nl_op for DeltaSpin was missing the
'isk' parameter that was present in the CPU version and ROCm/HIP version.
This caused a function signature mismatch during GPU compilation.
Added 'const int* isk' parameter to:
- source/source_pw/module_pwdft/kernels/force_op.h (GPU declaration)
- source/source_pw/module_pwdft/kernels/cuda/force_op.cu (GPU implementation)
This aligns the CUDA GPU implementation with the CPU and ROCm versions,
enabling correct spin channel handling in noncollinear DeltaSpin calculations.1 parent fea1c7b commit 1f817bd
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
0 commit comments