ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gint_gpu_vars.h
Go to the documentation of this file.
1#pragma once
2
3#include <cuda_runtime.h>
4#include "set_const_mem.cuh"
5#include "source_base/ylm.h"
9#include "gint_helper.cuh"
10
11namespace ModuleGint
12{
13
14class GintGpuVars
15{
16 public:
17 GintGpuVars(std::shared_ptr<const BigGridInfo> bgrid_info,
18 const UnitCell& ucell,
19 const Numerical_Orbital* Phi);
21
22 int nwmax;
23 double dr_uniform;
24 double nr_max;
25 // ylmcoef_d is __constant__ memory, no need to cudaFree
26 double* ylmcoef_d = nullptr;
27 double* rcut_d = nullptr;
28 int* atom_nw_d = nullptr;
29 int* ucell_atom_nwl_d = nullptr;
30 bool* atom_iw2_new_d = nullptr;
31 int* atom_iw2_ylm_d = nullptr;
32 int* atom_iw2_l_d = nullptr;
33 double* psi_u_d = nullptr;
34 double* dpsi_u_d = nullptr;
35 double* d2psi_u_d = nullptr;
36 double3* mgrids_pos_d = nullptr;
37 int* iat2it_d = nullptr;
38
39 // the index of gpu device
40 int dev_id_ = 0;
41
42};
43
44}
int * ucell_atom_nwl_d
Definition gint_gpu_vars.h:29
double * d2psi_u_d
Definition gint_gpu_vars.h:35
double * ylmcoef_d
Definition gint_gpu_vars.h:26
GintGpuVars(std::shared_ptr< const BigGridInfo > bgrid_info, const UnitCell &ucell, const Numerical_Orbital *Phi)
int * iat2it_d
Definition gint_gpu_vars.h:37
bool * atom_iw2_new_d
Definition gint_gpu_vars.h:30
double dr_uniform
Definition gint_gpu_vars.h:23
double * psi_u_d
Definition gint_gpu_vars.h:33
double3 * mgrids_pos_d
Definition gint_gpu_vars.h:36
int * atom_iw2_ylm_d
Definition gint_gpu_vars.h:31
int dev_id_
Definition gint_gpu_vars.h:40
int nwmax
Definition gint_gpu_vars.h:22
int * atom_nw_d
Definition gint_gpu_vars.h:28
int * atom_iw2_l_d
Definition gint_gpu_vars.h:32
double nr_max
Definition gint_gpu_vars.h:24
double * rcut_d
Definition gint_gpu_vars.h:27
double * dpsi_u_d
Definition gint_gpu_vars.h:34
Definition ORB_atomic.h:52
Definition unitcell.h:17
Definition batch_biggrid.cpp:4