(git:e70887f)
Loading...
Searching...
No Matches
grid_gpu_integrate.cu File Reference
#include "../../base/cp_assert.h"
#include <algorithm>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "grid_gpu_context.h"
#include "grid_gpu_internal_header.h"
#include "grid_gpu_process_vab.h"
#include "grid_gpu_separable.h"

Go to the source code of this file.

Namespaces

namespace  grid_gpu_backend

Functions

__inline__ __device__ double grid_gpu_backend::sep_row_reduce (double val)
template<typename T>
__device__ __inline__ T grid_gpu_backend::block_reduce_64 (T *table, const T val_, const int tid)
template<typename T>
__device__ void grid_gpu_backend::reduce_virial (const kernel_params &dev_, T *sum, const T virial[9], const int tid)
template<typename T>
__device__ void grid_gpu_backend::reduce_forces (const kernel_params &dev_, T *sum, T *fa, T *fb, const int tid)
template<typename T, bool IS_FUNC_AB>
__global__ grid_gpu_backend::__launch_bounds__ (64) void calculate_coefficients_two_steps(const kernel_params dev_
 Same as calculate_coefficients, with the spherical to cartesian transformation of block_to_cab done in two steps,.
 grid_gpu_backend::if (number_of_tasks==0) return
 grid_gpu_backend::for (int tk=0;tk< number_of_tasks;tk++)
template<typename T, bool COMPUTE_TAU>
__device__ __inline__ void grid_gpu_backend::accumulate_pair_forces (const smem_task< T > &task, const orbital &a, const orbital &b, const T p, const bool compute_virial, const T *__restrict__ cab, T *fa, T *fb, T *virial)
 Adds the contribution of the cartesian pair (a, b), weighted by the cartesian density p, to the forces and the virial.
template<typename T, typename T3, bool COMPUTE_TAU>
__global__ grid_gpu_backend::__launch_bounds__ (64) void compute_hab_forces(const kernel_params dev_)
 Fallback of compute_hab_forces_two_steps when its work arrays do not fit in the shared memory. hab is computed as in compute_hab. The forces and the virial only depend on the cartesian pair (a, b), so they are evaluated once per pair with the cartesian density.
 grid_gpu_backend::__syncthreads ()
 grid_gpu_backend::if (compute_virial)
template<bool distributed__, bool axis_aligned_, int lmax_, bool chunked_>
__global__ grid_gpu_backend::__launch_bounds__ (64) void integrate_separable_kernel(const kernel_params dev_
 grid_gpu_backend::if (sep_skip_task< chunked_ >(glb_task, mc)) return
 grid_gpu_backend::fill_smem_task_reduced (dev_, dev_.first_task+block_index(), task)
 grid_gpu_backend::if (tid==0)
 grid_gpu_backend::if (!chunked_) fill_py(0
 grid_gpu_backend::if (axis_aligned_)
template<int lmax_, bool chunked_ = false>
static integrate_separable_kernel_t grid_gpu_backend::select_integrate_separable (const bool distributed, const bool axis_aligned)
 Selects the instance of integrate_separable_kernel for one value of lmax_.
static integrate_separable_kernel_t grid_gpu_backend::select_integrate_separable (const int lp_max, const bool distributed, const bool axis_aligned, const bool chunked)
 Selects the instance of integrate_separable_kernel with the smallest bucket of the angular momentum covering lp_max. The chunked instances are only needed for very large cubes, they are only instantiated for the largest bucket.

Variables

constexpr size_t grid_gpu_backend::block_reduce_64_smem = 64 * sizeof(double)
T * grid_gpu_backend::smem_h = &shared_memory[0]
T * grid_gpu_backend::smem_u = smem_h + ld * ld
T * grid_gpu_backend::smem_w = smem_h + ld * ld
const bool grid_gpu_backend::compute_virial = (dev_.buffers_dev.virial != nullptr)
T grid_gpu_backend::fa [3] = {0.0, 0.0, 0.0}
T grid_gpu_backend::fb [3] = {0.0, 0.0, 0.0}
T grid_gpu_backend::virial [9] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
T * grid_gpu_backend::sum = (T *)shared_memory
__global__ const int const int const int grid_gpu_backend::yrows
__global__ const int const int const int const double *__restrict__ grid_gpu_backend::lattice_to_cartesian
double * grid_gpu_backend::pz = ex + (tables_ ? mc : 0)
double * grid_gpu_backend::acc = pz + ls
double * grid_gpu_backend::py = acc + ncoset(lp_max)
double * grid_gpu_backend::A = py + ls * yrows
double * grid_gpu_backend::B = A + yrows * ls
auto grid_gpu_backend::fill_py
task cube_size grid_gpu_backend::y
 grid_gpu_backend::else