DiFfRG
Loading...
Searching...
No Matches
DiFfRG::Integrator3DCartesianGPU< NT, KERNEL > Class Template Reference

#include <integrator_3D_cartesian_gpu.hh>

Public Types

using ctype = typename get_type::ctype<NT>
 Numerical type to be used for integration tasks e.g. the argument or possible jacobians.
 

Public Member Functions

 Integrator3DCartesianGPU (QuadratureProvider &quadrature_provider, const std::array< uint, 3 > grid_sizes, const ctype x_extent, const JSONValue &json)
 
 Integrator3DCartesianGPU (QuadratureProvider &quadrature_provider, std::array< uint, 3 > grid_sizes, const ctype x_extent, const uint max_block_size=256, const ctype qx_min=-M_PI, const ctype qy_min=-M_PI, const ctype qz_min=-M_PI, const ctype qx_max=M_PI, const ctype qy_max=M_PI, const ctype qz_max=M_PI)
 
 Integrator3DCartesianGPU (const Integrator3DCartesianGPU &other)
 
void set_qx_min (const ctype qx_min)
 Set the minimum value of the qx integration range.
 
void set_qy_min (const ctype qy_min)
 Set the minimum value of the qy integration range.
 
void set_qz_min (const ctype qz_min)
 Set the minimum value of the qz integration range.
 
void set_qx_max (const ctype qx_max)
 Set the maximum value of the qx integration range.
 
void set_qy_max (const ctype qy_max)
 Set the maximum value of the qy integration range.
 
void set_qz_max (const ctype qz_max)
 Set the maximum value of the qz integration range.
 
template<typename... T>
NT get (const ctype k, const T &...t) const
 
template<typename... T>
std::future< NT > request (const ctype k, const T &...t) const
 Request a future for the integral of the kernel.
 

Private Types

using PoolMR = rmm::mr::pool_memory_resource<rmm::mr::device_memory_resource>
 

Private Attributes

const std::array< uint, 3 > grid_sizes
 
std::array< uint, 3 > block_sizes
 
const uint device_data_size
 
const ctypeptr_x_quadrature_p
 
const ctypeptr_x_quadrature_w
 
const ctypeptr_y_quadrature_p
 
const ctypeptr_y_quadrature_w
 
const ctypeptr_z_quadrature_p
 
const ctypeptr_z_quadrature_w
 
ctype qx_min = -M_PI
 
ctype qy_min = -M_PI
 
ctype qx_extent = 2 * M_PI
 
ctype qy_extent = 2 * M_PI
 
ctype qz_min = -M_PI
 
ctype qz_extent = 2 * M_PI
 
dim3 num_blocks
 
dim3 threads_per_block
 
PoolMR pool
 
const rmm::cuda_stream_pool cuda_stream_pool
 

Member Typedef Documentation

◆ ctype

template<typename NT , typename KERNEL >
using DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ctype = typename get_type::ctype<NT>

Numerical type to be used for integration tasks e.g. the argument or possible jacobians.

◆ PoolMR

template<typename NT , typename KERNEL >
using DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::PoolMR = rmm::mr::pool_memory_resource<rmm::mr::device_memory_resource>
private

Constructor & Destructor Documentation

◆ Integrator3DCartesianGPU() [1/3]

template<typename NT , typename KERNEL >
DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::Integrator3DCartesianGPU ( QuadratureProvider & quadrature_provider,
const std::array< uint, 3 > grid_sizes,
const ctype x_extent,
const JSONValue & json )
inline

◆ Integrator3DCartesianGPU() [2/3]

template<typename NT , typename KERNEL >
DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::Integrator3DCartesianGPU ( QuadratureProvider & quadrature_provider,
std::array< uint, 3 > grid_sizes,
const ctype x_extent,
const uint max_block_size = 256,
const ctype qx_min = -M_PI,
const ctype qy_min = -M_PI,
const ctype qz_min = -M_PI,
const ctype qx_max = M_PI,
const ctype qy_max = M_PI,
const ctype qz_max = M_PI )
inline

◆ Integrator3DCartesianGPU() [3/3]

template<typename NT , typename KERNEL >
DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::Integrator3DCartesianGPU ( const Integrator3DCartesianGPU< NT, KERNEL > & other)
inline

Member Function Documentation

◆ get()

template<typename NT , typename KERNEL >
template<typename... T>
NT DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::get ( const ctype k,
const T &... t ) const
inline

◆ request()

template<typename NT , typename KERNEL >
template<typename... T>
std::future< NT > DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::request ( const ctype k,
const T &... t ) const
inline

Request a future for the integral of the kernel.

Template Parameters
TTypes of the parameters for the kernel.
Parameters
kRG-scale.
tParameters forwarded to the kernel.
Returns
std::future<NT> future holding the integral of the kernel plus the constant part.

◆ set_qx_max()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qx_max ( const ctype qx_max)
inline

Set the maximum value of the qx integration range.

◆ set_qx_min()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qx_min ( const ctype qx_min)
inline

Set the minimum value of the qx integration range.

◆ set_qy_max()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qy_max ( const ctype qy_max)
inline

Set the maximum value of the qy integration range.

◆ set_qy_min()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qy_min ( const ctype qy_min)
inline

Set the minimum value of the qy integration range.

◆ set_qz_max()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qz_max ( const ctype qz_max)
inline

Set the maximum value of the qz integration range.

◆ set_qz_min()

template<typename NT , typename KERNEL >
void DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::set_qz_min ( const ctype qz_min)
inline

Set the minimum value of the qz integration range.

Member Data Documentation

◆ block_sizes

template<typename NT , typename KERNEL >
std::array<uint, 3> DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::block_sizes
private

◆ cuda_stream_pool

template<typename NT , typename KERNEL >
const rmm::cuda_stream_pool DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::cuda_stream_pool
private

◆ device_data_size

template<typename NT , typename KERNEL >
const uint DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::device_data_size
private

◆ grid_sizes

template<typename NT , typename KERNEL >
const std::array<uint, 3> DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::grid_sizes
private

◆ num_blocks

template<typename NT , typename KERNEL >
dim3 DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::num_blocks
private

◆ pool

template<typename NT , typename KERNEL >
PoolMR DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::pool
mutableprivate

◆ ptr_x_quadrature_p

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_x_quadrature_p
private

◆ ptr_x_quadrature_w

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_x_quadrature_w
private

◆ ptr_y_quadrature_p

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_y_quadrature_p
private

◆ ptr_y_quadrature_w

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_y_quadrature_w
private

◆ ptr_z_quadrature_p

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_z_quadrature_p
private

◆ ptr_z_quadrature_w

template<typename NT , typename KERNEL >
const ctype* DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::ptr_z_quadrature_w
private

◆ qx_extent

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qx_extent = 2 * M_PI
private

◆ qx_min

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qx_min = -M_PI
private

◆ qy_extent

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qy_extent = 2 * M_PI
private

◆ qy_min

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qy_min = -M_PI
private

◆ qz_extent

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qz_extent = 2 * M_PI
private

◆ qz_min

template<typename NT , typename KERNEL >
ctype DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::qz_min = -M_PI
private

◆ threads_per_block

template<typename NT , typename KERNEL >
dim3 DiFfRG::Integrator3DCartesianGPU< NT, KERNEL >::threads_per_block
private

The documentation for this class was generated from the following file: