|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
PW-basis subspace data cache for DeltaSpin, decoupled from SpinConstrain. More...
#include <complex>#include <vector>#include "source_base/vector3.h"#include "source_base/module_device/memory_op.h"Go to the source code of this file.
Classes | |
| class | spinconstrain::pw::SubspaceCache |
| Owning cache of PW subspace H/S/becp data plus the lambda snapshot. More... | |
Namespaces | |
| namespace | spinconstrain |
| namespace | spinconstrain::pw |
PW-basis subspace data cache for DeltaSpin, decoupled from SpinConstrain.
This class owns the three raw device/host pointers plus the lambda snapshot taken when the cache was filled, replacing the ad-hoc new[]/delete[] that used to live as public SpinConstrain members. It encapsulates the CPU vs GPU allocation/free difference behind allocate()/release(), while still exposing raw per-k pointers (h_k/s_k/becp_k) because the hsolver subspace routines and GPU memcpy ops require raw pointers.