(git:27c966b)
Loading...
Searching...
No Matches
grid_gpu_separable.h File Reference
#include <algorithm>
#include <vector>
#include "grid_gpu_context.h"
#include "grid_gpu_internal_header.h"

Go to the source code of this file.

Namespaces

namespace  grid_gpu_backend

Macros

#define GRID_SEP_COLLOCATE_ROW_LANES   8
#define GRID_SEP_INTEGRATE_ROW_LANES   4
#define GRID_SEP_MAX_L   18

Functions

template<int STRIDE>
__device__ __inline__ int grid_gpu_backend::sep_advance_wrapped_index (const int x2, const int n)
int grid_gpu_backend::separable_lmax_bucket (const int lp_max)
static void grid_gpu_backend::init_separable_constant_memory ()
 Initializes the constant memory of integrate_separable_kernel.
static std::vector< double > grid_gpu_backend::build_lattice_to_cartesian_matrix (const double *dh, const int lmax)
 Builds the matrix expanding the cartesian monomials x^a y^b z^c in lattice monomials u^i v^j w^k, where x = dh[0] u + dh[3] v + dh[6] w, y = dh[1] u + dh[4] v + dh[7] w, z = dh[2] u + dh[5] v + dh[8] w. Only the blocks a + b + c = i + j + k = l are non zero. They are stored one after the other for l = 0..lmax, block l being row major of size nl x nl, nl = (l + 1)(l + 2) / 2, rows and columns in coset order.
static const double * grid_gpu_backend::get_lattice_to_cartesian (grid_info< double > &grid, const int lmax)
 Returns the lattice to cartesian matrix of a grid level on the device, (re)computing it when the lattice vectors changed or a higher angular momentum is needed.

Variables

constexpr size_t grid_gpu_backend::separable_max_smem = 48 * 1024
__constant__ char2 grid_gpu_backend::sep_pair_ab [(GRID_SEP_MAX_L+1) *(GRID_SEP_MAX_L+2)/2]
__constant__ int grid_gpu_backend::sep_m_offset [GRID_SEP_MAX_L+1]

Macro Definition Documentation

◆ GRID_SEP_COLLOCATE_ROW_LANES

#define GRID_SEP_COLLOCATE_ROW_LANES   8

Definition at line 35 of file grid_gpu_separable.h.

◆ GRID_SEP_INTEGRATE_ROW_LANES

#define GRID_SEP_INTEGRATE_ROW_LANES   4

Definition at line 38 of file grid_gpu_separable.h.

◆ GRID_SEP_MAX_L

#define GRID_SEP_MAX_L   18

Definition at line 49 of file grid_gpu_separable.h.