SIRIUS 7.5.0
Electronic structure library and applications
Functions
density_rg.cu File Reference

CUDA kernel to update density on the regular FFT grid. More...

Go to the source code of this file.

Functions

template<typename T >
__global__ void update_density_rg_1_complex_gpu_kernel (int size__, gpu_complex_type< T > const *psi_rg__, T wt__, T *density_rg__)
 
void update_density_rg_1_complex_gpu_double (int size__, acc_complex_double_t const *psi_rg__, double wt__, double *density_rg__)
 
void update_density_rg_1_complex_gpu_float (int size__, acc_complex_float_t const *psi_rg__, float wt__, float *density_rg__)
 
template<typename T >
__global__ void update_density_rg_1_real_gpu_kernel (int size__, T const *psi_rg__, T wt__, T *density_rg__)
 
void update_density_rg_1_real_gpu_double (int size__, double const *psi_rg__, double wt__, double *density_rg__)
 
void update_density_rg_1_real_gpu_float (int size__, float const *psi_rg__, float wt__, float *density_rg__)
 
template<typename T >
__global__ void update_density_rg_2_gpu_kernel (int size__, gpu_complex_type< T > const *psi_up_rg__, gpu_complex_type< T > const *psi_dn_rg__, T wt__, T *density_x_rg__, T *density_y_rg__)
 
template<>
__global__ void update_density_rg_2_gpu_kernel< double > (int size__, acc_complex_double_t const *psi_up_rg__, acc_complex_double_t const *psi_dn_rg__, double wt__, double *density_x_rg__, double *density_y_rg__)
 
template<>
__global__ void update_density_rg_2_gpu_kernel< float > (int size__, acc_complex_float_t const *psi_up_rg__, acc_complex_float_t const *psi_dn_rg__, float wt__, float *density_x_rg__, float *density_y_rg__)
 
void update_density_rg_2_gpu_double (int size__, acc_complex_double_t const *psi_up_rg__, acc_complex_double_t const *psi_dn_rg__, double wt__, double *density_x_rg__, double *density_y_rg__)
 
void update_density_rg_2_gpu_float (int size__, acc_complex_float_t const *psi_up_rg__, acc_complex_float_t const *psi_dn_rg__, float wt__, float *density_x_rg__, float *density_y_rg__)
 

Detailed Description

CUDA kernel to update density on the regular FFT grid.

Definition in file density_rg.cu.

Function Documentation

◆ update_density_rg_1_complex_gpu_kernel()

template<typename T >
__global__ void update_density_rg_1_complex_gpu_kernel ( int  size__,
gpu_complex_type< T > const *  psi_rg__,
wt__,
T *  density_rg__ 
)

Definition at line 32 of file density_rg.cu.

◆ update_density_rg_1_complex_gpu_double()

void update_density_rg_1_complex_gpu_double ( int  size__,
acc_complex_double_t const *  psi_rg__,
double  wt__,
double *  density_rg__ 
)

Definition at line 45 of file density_rg.cu.

◆ update_density_rg_1_complex_gpu_float()

void update_density_rg_1_complex_gpu_float ( int  size__,
acc_complex_float_t const *  psi_rg__,
float  wt__,
float *  density_rg__ 
)

Definition at line 59 of file density_rg.cu.

◆ update_density_rg_1_real_gpu_kernel()

template<typename T >
__global__ void update_density_rg_1_real_gpu_kernel ( int  size__,
T const *  psi_rg__,
wt__,
T *  density_rg__ 
)

Definition at line 74 of file density_rg.cu.

◆ update_density_rg_1_real_gpu_double()

void update_density_rg_1_real_gpu_double ( int  size__,
double const *  psi_rg__,
double  wt__,
double *  density_rg__ 
)

Definition at line 87 of file density_rg.cu.

◆ update_density_rg_1_real_gpu_float()

void update_density_rg_1_real_gpu_float ( int  size__,
float const *  psi_rg__,
float  wt__,
float *  density_rg__ 
)

Definition at line 105 of file density_rg.cu.

◆ update_density_rg_2_gpu_kernel< double >()

template<>
__global__ void update_density_rg_2_gpu_kernel< double > ( int  size__,
acc_complex_double_t const *  psi_up_rg__,
acc_complex_double_t const *  psi_dn_rg__,
double  wt__,
double *  density_x_rg__,
double *  density_y_rg__ 
)

Definition at line 132 of file density_rg.cu.

◆ update_density_rg_2_gpu_kernel< float >()

template<>
__global__ void update_density_rg_2_gpu_kernel< float > ( int  size__,
acc_complex_float_t const *  psi_up_rg__,
acc_complex_float_t const *  psi_dn_rg__,
float  wt__,
float *  density_x_rg__,
float *  density_y_rg__ 
)

Definition at line 148 of file density_rg.cu.

◆ update_density_rg_2_gpu_double()

void update_density_rg_2_gpu_double ( int  size__,
acc_complex_double_t const *  psi_up_rg__,
acc_complex_double_t const *  psi_dn_rg__,
double  wt__,
double *  density_x_rg__,
double *  density_y_rg__ 
)

Definition at line 164 of file density_rg.cu.

◆ update_density_rg_2_gpu_float()

void update_density_rg_2_gpu_float ( int  size__,
acc_complex_float_t const *  psi_up_rg__,
acc_complex_float_t const *  psi_dn_rg__,
float  wt__,
float *  density_x_rg__,
float *  density_y_rg__ 
)

Definition at line 186 of file density_rg.cu.