ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gint_vl_mgga_n4_gpu.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_MGGA_N4_GPU_H
2#define ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_MGGA_N4_GPU_H
3
4#include "gint.h"
5#include "gint_info.h"
8#include <memory>
9#include <vector>
10
11namespace ModuleGint
12{
13
15{
16 public:
18 std::vector<const double *> vr_eff, std::vector<const double *> vofk, HContainer<std::complex<double>> *hR)
19 : vr_eff_(vr_eff), vofk_(vofk), hR_(hR), dr3_(gint_info_->get_mgrid_volume())
20 {
21 }
22
23 void cal_gint();
24
25 private:
26 void init_hr_gint_();
27
29
31
32 void cal_hr_gint_();
33
34 // input
35 std::vector<const double *> vr_eff_;
36 std::vector<const double *> vofk_;
37 // output
39
40 // Intermediate variables
41 const double dr3_;
42
43 const int nspin_ = 4;
44
45 std::vector<HContainer<double>> hr_gint_part_;
46
47 std::vector<CudaMemWrapper<double>> vr_eff_d_;
48 std::vector<CudaMemWrapper<double>> vofk_d_;
49 std::vector<CudaMemWrapper<double>> hr_gint_part_d_;
50};
51
52} // namespace ModuleGint
53
54#endif // ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_MGGA_N4_GPU_H
void cal_hr_gint_()
Definition gint_vl_mgga_n4_gpu.cpp:59
const int nspin_
Definition gint_vl_mgga_n4_gpu.h:43
void cal_gint()
Definition gint_vl_mgga_n4_gpu.cpp:11
void init_hr_gint_()
Definition gint_vl_mgga_n4_gpu.cpp:21
void transfer_cpu_to_gpu_()
Definition gint_vl_mgga_n4_gpu.cpp:30
std::vector< CudaMemWrapper< double > > vofk_d_
Definition gint_vl_mgga_n4_gpu.h:48
void transfer_gpu_to_cpu_()
Definition gint_vl_mgga_n4_gpu.cpp:49
std::vector< HContainer< double > > hr_gint_part_
Definition gint_vl_mgga_n4_gpu.h:45
std::vector< CudaMemWrapper< double > > hr_gint_part_d_
Definition gint_vl_mgga_n4_gpu.h:49
HContainer< std::complex< double > > * hR_
Definition gint_vl_mgga_n4_gpu.h:38
Gint_vl_metagga_nspin4_gpu(std::vector< const double * > vr_eff, std::vector< const double * > vofk, HContainer< std::complex< double > > *hR)
Definition gint_vl_mgga_n4_gpu.h:17
std::vector< const double * > vofk_
Definition gint_vl_mgga_n4_gpu.h:36
const double dr3_
Definition gint_vl_mgga_n4_gpu.h:41
std::vector< CudaMemWrapper< double > > vr_eff_d_
Definition gint_vl_mgga_n4_gpu.h:47
std::vector< const double * > vr_eff_
Definition gint_vl_mgga_n4_gpu.h:35
static GintInfo * gint_info_
Definition gint.h:31
Definition batch_biggrid.cpp:4
hamilt::HContainer< T > HContainer
Definition gint_type.h:15