Commit b9cfd1e
Fix: add EXX erfc parameter handling for pw basis type (#7166)
* fix: add runtime check for cudaHostRegister in EXX PW
Add runtime check (PARAM.inp.device == "gpu") before calling
cudaHostRegister and cudaHostUnregister to avoid failures when
CUDA is enabled but running on CPU device (e.g., on clusters with
both CPU and GPU nodes but only compiling once).
* Update source/source_pw/module_pwdft/op_pw_exx_pot.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update source/source_pw/module_pwdft/op_pw_exx_pot.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: add erfc param handling for pw basis in EXX
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent c4bfd17 commit b9cfd1e
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
416 | 426 | | |
417 | 427 | | |
418 | 428 | | |
| |||
0 commit comments