ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gint_vl_nspin4_gpu.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_NSPIN4_GPU_H
2#define ABACUS_SOURCE_HAMILT_MODULE_GINT_GINT_VL_NSPIN4_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:
17 Gint_vl_nspin4_gpu(std::vector<const double *> vr_eff, HContainer<std::complex<double>> *hR)
18 : vr_eff_(vr_eff), hR_(hR), dr3_(gint_info_->get_mgrid_volume())
19 {
20 }
21
22 void cal_gint();
23
24 private:
25 void init_hr_gint_();
26
28
30
31 // note that only the upper triangle matrix of hR is calculated
32 // that's why we need compose_hr_gint() to fill the lower triangle matrix.
33 void cal_hr_gint_();
34
35 // input
36 std::vector<const double *> vr_eff_;
37
38 // output
40
41 // Intermediate variables
42 const double dr3_;
43
44 const int nspin_ = 4;
45
46 std::vector<HContainer<double>> hr_gint_part_;
47
48 std::vector<CudaMemWrapper<double>> vr_eff_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_NSPIN4_GPU_H
std::vector< HContainer< double > > hr_gint_part_
Definition gint_vl_nspin4_gpu.h:46
void init_hr_gint_()
Definition gint_vl_nspin4_gpu.cpp:21
void cal_gint()
Definition gint_vl_nspin4_gpu.cpp:11
void cal_hr_gint_()
Definition gint_vl_nspin4_gpu.cpp:54
HContainer< std::complex< double > > * hR_
Definition gint_vl_nspin4_gpu.h:39
std::vector< CudaMemWrapper< double > > vr_eff_d_
Definition gint_vl_nspin4_gpu.h:48
const double dr3_
Definition gint_vl_nspin4_gpu.h:42
const int nspin_
Definition gint_vl_nspin4_gpu.h:44
Gint_vl_nspin4_gpu(std::vector< const double * > vr_eff, HContainer< std::complex< double > > *hR)
Definition gint_vl_nspin4_gpu.h:17
std::vector< const double * > vr_eff_
Definition gint_vl_nspin4_gpu.h:36
std::vector< CudaMemWrapper< double > > hr_gint_part_d_
Definition gint_vl_nspin4_gpu.h:49
void transfer_gpu_to_cpu_()
Definition gint_vl_nspin4_gpu.cpp:44
void transfer_cpu_to_gpu_()
Definition gint_vl_nspin4_gpu.cpp:30
static GintInfo * gint_info_
Definition gint.h:31
Definition batch_biggrid.cpp:4
hamilt::HContainer< T > HContainer
Definition gint_type.h:15