Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CUDAWrappers::DataHost< dim, Number > Struct Template Reference

#include <deal.II/matrix_free/cuda_matrix_free.h>

Public Member Functions

unsigned int local_q_point_id (const unsigned int cell, const unsigned int n_q_points, const unsigned int q_point) const
 
Point< dim, Number > get_quadrature_point (const unsigned int cell, const unsigned int q_point) const
 

Public Attributes

Kokkos::View< Point< dim, Number > **, MemorySpace::Default::kokkos_space >::HostMirror q_points
 
Kokkos::View< types::global_dof_index **, MemorySpace::Default::kokkos_space >::HostMirror local_to_global
 
Kokkos::View< Number **[dim][dim], MemorySpace::Default::kokkos_space >::HostMirror inv_jacobian
 
Kokkos::View< Number **, MemorySpace::Default::kokkos_space >::HostMirror JxW
 
unsigned int n_cells
 
unsigned int padding_length
 
unsigned int row_start
 
Kokkos::View<::internal::MatrixFreeFunctions::ConstraintKinds *, MemorySpace::Default::kokkos_space >::HostMirror constraint_mask
 
bool use_coloring
 

Detailed Description

template<int dim, typename Number>
struct CUDAWrappers::DataHost< dim, Number >

Structure which is passed to the kernel. It is used to pass all the necessary information from the CPU to the GPU.

Definition at line 679 of file cuda_matrix_free.h.

Member Function Documentation

◆ local_q_point_id()

template<int dim, typename Number >
unsigned int CUDAWrappers::DataHost< dim, Number >::local_q_point_id ( const unsigned int  cell,
const unsigned int  n_q_points,
const unsigned int  q_point 
) const
inline

This function is the host version of local_q_point_id().

Definition at line 743 of file cuda_matrix_free.h.

◆ get_quadrature_point()

template<int dim, typename Number >
Point< dim, Number > CUDAWrappers::DataHost< dim, Number >::get_quadrature_point ( const unsigned int  cell,
const unsigned int  q_point 
) const
inline

This function is the host version of get_quadrature_point().

Definition at line 756 of file cuda_matrix_free.h.

Member Data Documentation

◆ q_points

template<int dim, typename Number >
Kokkos::View<Point<dim,Number>**,MemorySpace::Default::kokkos_space>::HostMirror CUDAWrappers::DataHost< dim, Number >::q_points

Kokkos::View of quadrature points on the host.

Definition at line 686 of file cuda_matrix_free.h.

◆ local_to_global

template<int dim, typename Number >
Kokkos::View<types::global_dof_index**,MemorySpace::Default::kokkos_space>::HostMirror CUDAWrappers::DataHost< dim, Number >::local_to_global

Map the position in the local vector to the position in the global vector.

Definition at line 694 of file cuda_matrix_free.h.

◆ inv_jacobian

template<int dim, typename Number >
Kokkos::View<Number**[dim][dim],MemorySpace::Default::kokkos_space>::HostMirror CUDAWrappers::DataHost< dim, Number >::inv_jacobian

Kokkos::View of inverse Jacobians on the host.

Definition at line 701 of file cuda_matrix_free.h.

◆ JxW

template<int dim, typename Number >
Kokkos::View<Number**,MemorySpace::Default::kokkos_space>::HostMirror CUDAWrappers::DataHost< dim, Number >::JxW

Kokkos::View of Jacobian times the weights on the host.

Definition at line 707 of file cuda_matrix_free.h.

◆ n_cells

template<int dim, typename Number >
unsigned int CUDAWrappers::DataHost< dim, Number >::n_cells

Number of cells.

Definition at line 712 of file cuda_matrix_free.h.

◆ padding_length

template<int dim, typename Number >
unsigned int CUDAWrappers::DataHost< dim, Number >::padding_length

Length of the padding.

Definition at line 717 of file cuda_matrix_free.h.

◆ row_start

template<int dim, typename Number >
unsigned int CUDAWrappers::DataHost< dim, Number >::row_start

Row start (including padding).

Definition at line 722 of file cuda_matrix_free.h.

◆ constraint_mask

template<int dim, typename Number >
Kokkos::View<::internal::MatrixFreeFunctions::ConstraintKinds*,MemorySpace::Default::kokkos_space>::HostMirror CUDAWrappers::DataHost< dim, Number >::constraint_mask

Mask deciding where constraints are set on a given cell.

Definition at line 729 of file cuda_matrix_free.h.

◆ use_coloring

template<int dim, typename Number >
bool CUDAWrappers::DataHost< dim, Number >::use_coloring

If true, use graph coloring has been used and we can simply add into the destingation vector. Otherwise, use atomic operations.

Definition at line 735 of file cuda_matrix_free.h.


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