ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ekinetic_op.h
Go to the documentation of this file.
1#ifndef MODULE_HAMILT_EKINETIC_H
2#define MODULE_HAMILT_EKINETIC_H
3
5#include <complex>
6
7namespace hamilt
8{
9template <typename FPTYPE, typename Device>
11{
27 const Device *dev,
28 const int &nband,
29 const int &npw,
30 const int &max_npw,
31 const bool &is_first_node,
32 const FPTYPE &tpiba2,
33 const FPTYPE *gk2_ik,
34 std::complex<FPTYPE> *tmhpsi,
35 const std::complex<FPTYPE> *tmpsi_in);
36};
37
38#if __CUDA || __UT_USE_CUDA || __ROCM || __UT_USE_ROCM
39// Partially specialize functor for base_device::GpuDevice.
40template <typename FPTYPE>
41struct ekinetic_pw_op<FPTYPE, base_device::DEVICE_GPU>
42{
43 void operator()(
44 const base_device::DEVICE_GPU *dev,
45 const int &nband,
46 const int &npw,
47 const int &max_npw,
48 const bool &is_first_node,
49 const FPTYPE &tpiba2,
50 const FPTYPE *gk2_ik,
51 std::complex<FPTYPE> *tmhpsi,
52 const std::complex<FPTYPE> *tmpsi_in);
53};
54#endif // __CUDA || __UT_USE_CUDA || __ROCM || __UT_USE_ROCM
55} // namespace hamilt
56#endif // MODULE_HAMILT_EKINETIC_H
Definition device.cpp:21
Definition wf_op.cpp:6
Definition ekinetic_op.h:11
void operator()(const Device *dev, const int &nband, const int &npw, const int &max_npw, const bool &is_first_node, const FPTYPE &tpiba2, const FPTYPE *gk2_ik, std::complex< FPTYPE > *tmhpsi, const std::complex< FPTYPE > *tmpsi_in)
Compute the ekinetic potential of hPsi.