Reference documentation for deal.II version 9.4.1
\(\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
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | Related Functions | List of all members
CUDAWrappers::MatrixFree< dim, Number > Class Template Reference

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

Inheritance diagram for CUDAWrappers::MatrixFree< dim, Number >:
[legend]

Classes

struct  AdditionalData
 
struct  Data
 

Public Types

enum  ParallelizationScheme { parallel_in_elem , parallel_over_elem }
 
using jacobian_type = Tensor< 2, dim, Tensor< 1, dim, Number > >
 
using point_type = Point< dim, Number >
 
using CellFilter = FilteredIterator< typename DoFHandler< dim >::active_cell_iterator >
 

Public Member Functions

 MatrixFree ()
 
 ~MatrixFree ()
 
unsigned int get_padding_length () const
 
template<typename IteratorFiltersType >
void reinit (const Mapping< dim > &mapping, const DoFHandler< dim > &dof_handler, const AffineConstraints< Number > &constraints, const Quadrature< 1 > &quad, const IteratorFiltersType &iterator_filter, const AdditionalData &additional_data=AdditionalData())
 
void reinit (const Mapping< dim > &mapping, const DoFHandler< dim > &dof_handler, const AffineConstraints< Number > &constraints, const Quadrature< 1 > &quad, const AdditionalData &additional_data=AdditionalData())
 
void reinit (const DoFHandler< dim > &dof_handler, const AffineConstraints< Number > &constraints, const Quadrature< 1 > &quad, const AdditionalData &additional_data=AdditionalData())
 
Data get_data (unsigned int color) const
 
template<typename Functor , typename VectorType >
void cell_loop (const Functor &func, const VectorType &src, VectorType &dst) const
 
template<typename Functor >
void evaluate_coefficients (Functor func) const
 
template<typename VectorType >
void copy_constrained_values (const VectorType &src, VectorType &dst) const
 
template<typename VectorType >
void set_constrained_values (const Number val, VectorType &dst) const
 
void initialize_dof_vector (LinearAlgebra::CUDAWrappers::Vector< Number > &vec) const
 
void initialize_dof_vector (LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &vec) const
 
const std::vector< std::vector< CellFilter > > & get_colored_graph () const
 
const std::shared_ptr< const Utilities::MPI::Partitioner > & get_vector_partitioner () const
 
void free ()
 
const DoFHandler< dim > & get_dof_handler () const
 
std::size_t memory_consumption () const
 

Private Member Functions

template<typename IteratorFiltersType >
void internal_reinit (const Mapping< dim > &mapping, const DoFHandler< dim > &dof_handler, const AffineConstraints< Number > &constraints, const Quadrature< 1 > &quad, const IteratorFiltersType &iterator_filter, std::shared_ptr< const MPI_Comm > comm, const AdditionalData additional_data)
 
template<typename Functor , typename VectorType >
void serial_cell_loop (const Functor &func, const VectorType &src, VectorType &dst) const
 
template<typename Functor >
void distributed_cell_loop (const Functor &func, const LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &src, LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &dst) const
 
template<typename Functor >
void distributed_cell_loop (const Functor &func, const LinearAlgebra::CUDAWrappers::Vector< Number > &src, LinearAlgebra::CUDAWrappers::Vector< Number > &dst) const
 
template<typename VectorType >
void serial_copy_constrained_values (const VectorType &src, VectorType &dst) const
 
void distributed_copy_constrained_values (const LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &src, LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &dst) const
 
void distributed_copy_constrained_values (const LinearAlgebra::CUDAWrappers::Vector< Number > &src, LinearAlgebra::CUDAWrappers::Vector< Number > &dst) const
 
template<typename VectorType >
void serial_set_constrained_values (const Number val, VectorType &dst) const
 
void distributed_set_constrained_values (const Number val, LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &dst) const
 
void distributed_set_constrained_values (const Number val, LinearAlgebra::CUDAWrappers::Vector< Number > &dst) const
 

Private Attributes

int my_id
 
ParallelizationScheme parallelization_scheme
 
bool use_coloring
 
bool overlap_communication_computation
 
types::global_dof_index n_dofs
 
unsigned int fe_degree
 
unsigned int dofs_per_cell
 
unsigned int n_constrained_dofs
 
unsigned int q_points_per_cell
 
unsigned int n_colors
 
std::vector< unsigned intn_cells
 
std::vector< point_type * > q_points
 
std::vector< types::global_dof_index * > local_to_global
 
std::vector< Number * > inv_jacobian
 
std::vector< Number * > JxW
 
types::global_dof_indexconstrained_dofs
 
std::vector<::internal::MatrixFreeFunctions::ConstraintKinds * > constraint_mask
 
std::vector< dim3 > grid_dim
 
std::vector< dim3 > block_dim
 
std::shared_ptr< const Utilities::MPI::Partitionerpartitioner
 
unsigned int cells_per_block
 
dim3 constraint_grid_dim
 
dim3 constraint_block_dim
 
unsigned int padding_length
 
std::vector< unsigned introw_start
 
const DoFHandler< dim > * dof_handler
 
std::vector< std::vector< CellFilter > > graph
 

Friends

class internal::ReinitHelper< dim, Number >
 

Related Functions

(Note that these are not member functions.)

template<int dim>
unsigned int q_point_id_in_cell (const unsigned int n_q_points_1d)
 
template<int dim, typename Number >
unsigned int local_q_point_id (const unsigned int cell, const typename CUDAWrappers::MatrixFree< dim, Number >::Data *data, const unsigned int n_q_points_1d, const unsigned int n_q_points)
 
template<int dim, typename Number >
CUDAWrappers::MatrixFree< dim, Number >::point_typeget_quadrature_point (const unsigned int cell, const typename CUDAWrappers::MatrixFree< dim, Number >::Data *data, const unsigned int n_q_points_1d)
 
template<int dim, typename Number >
DataHost< dim, Number > copy_mf_data_to_host (const typename::CUDAWrappers::MatrixFree< dim, Number >::Data &data, const UpdateFlags &update_flags)
 
template<int dim, typename Number >
unsigned int local_q_point_id_host (const unsigned int cell, const DataHost< dim, Number > &data, const unsigned int n_q_points, const unsigned int i)
 
template<int dim, typename Number >
Point< dim, Number > get_quadrature_point_host (const unsigned int cell, const DataHost< dim, Number > &data, const unsigned int i)
 

Subscriptor functionality

Classes derived from Subscriptor provide a facility to subscribe to this object. This is mostly used by the SmartPointer class.

std::atomic< unsigned intcounter
 
std::map< std::string, unsigned intcounter_map
 
std::vector< std::atomic< bool > * > validity_pointers
 
const std::type_info * object_info
 
void subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
void unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
unsigned int n_subscriptions () const
 
template<typename StreamType >
void list_subscribers (StreamType &stream) const
 
void list_subscribers () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
void check_no_subscribers () const noexcept
 
using map_value_type = decltype(counter_map)::value_type
 
using map_iterator = decltype(counter_map)::iterator
 
static std::mutex mutex
 
static ::ExceptionBaseExcInUse (int arg1, std::string arg2, std::string arg3)
 
static ::ExceptionBaseExcNoSubscriber (std::string arg1, std::string arg2)
 

Detailed Description

template<int dim, typename Number = double>
class CUDAWrappers::MatrixFree< dim, Number >

This class collects all the data that is stored for the matrix free implementation. The storage scheme is tailored towards several loops performed with the same data, i.e., typically doing many matrix-vector products or residual computations on the same mesh.

This class does not implement any operations involving finite element basis functions, i.e., regarding the operation performed on the cells. For these operations, the class FEEvaluation is designed to use the data collected in this class.

This class implements a loop over all cells (cell_loop()). This loop is scheduled in such a way that cells that share degrees of freedom are not worked on simultaneously, which implies that it is possible to write to vectors in parallel without having to explicitly synchronize access to these vectors and matrices. This class does not implement any shape values, all it does is to cache the respective data. To implement finite element operations, use the class CUDAWrappers::FEEvalutation.

This class traverse the cells in a different order than the usual Triangulation class in deal.II.

Note
Only float and double are supported.

Definition at line 92 of file cuda_matrix_free.h.

Member Typedef Documentation

◆ jacobian_type

template<int dim, typename Number = double>
using CUDAWrappers::MatrixFree< dim, Number >::jacobian_type = Tensor<2, dim, Tensor<1, dim, Number> >

Definition at line 95 of file cuda_matrix_free.h.

◆ point_type

template<int dim, typename Number = double>
using CUDAWrappers::MatrixFree< dim, Number >::point_type = Point<dim, Number>

Definition at line 96 of file cuda_matrix_free.h.

◆ CellFilter

template<int dim, typename Number = double>
using CUDAWrappers::MatrixFree< dim, Number >::CellFilter = FilteredIterator<typename DoFHandler<dim>::active_cell_iterator>

Definition at line 97 of file cuda_matrix_free.h.

Member Enumeration Documentation

◆ ParallelizationScheme

template<int dim, typename Number = double>
enum CUDAWrappers::MatrixFree::ParallelizationScheme

Parallelization scheme used: parallel_in_elem (parallelism at the level of degrees of freedom) or parallel_over_elem (parallelism at the level of cells)

Enumerator
parallel_in_elem 
parallel_over_elem 

Definition at line 105 of file cuda_matrix_free.h.

Constructor & Destructor Documentation

◆ MatrixFree()

template<int dim, typename Number = double>
CUDAWrappers::MatrixFree< dim, Number >::MatrixFree ( )

Default constructor.

◆ ~MatrixFree()

template<int dim, typename Number = double>
CUDAWrappers::MatrixFree< dim, Number >::~MatrixFree ( )

Destructor.

Member Function Documentation

◆ get_padding_length()

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::get_padding_length ( ) const

Return the length of the padding.

◆ reinit() [1/3]

template<int dim, typename Number = double>
template<typename IteratorFiltersType >
void CUDAWrappers::MatrixFree< dim, Number >::reinit ( const Mapping< dim > &  mapping,
const DoFHandler< dim > &  dof_handler,
const AffineConstraints< Number > &  constraints,
const Quadrature< 1 > &  quad,
const IteratorFiltersType &  iterator_filter,
const AdditionalData additional_data = AdditionalData() 
)

Extracts the information needed to perform loops over cells. The DoFHandler and AffineConstraints objects describe the layout of degrees of freedom, the DoFHandler and the mapping describe the transformation from unit to real cell, and the finite element underlying the DoFHandler together with the quadrature formula describe the local operations. This function takes an IteratorFilters object (predicate) to loop over a subset of the active cells. When using MPI, the predicate should filter out non locally owned cells.

◆ reinit() [2/3]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::reinit ( const Mapping< dim > &  mapping,
const DoFHandler< dim > &  dof_handler,
const AffineConstraints< Number > &  constraints,
const Quadrature< 1 > &  quad,
const AdditionalData additional_data = AdditionalData() 
)

Same as above using Iterators::LocallyOwnedCell() as predicate.

◆ reinit() [3/3]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::reinit ( const DoFHandler< dim > &  dof_handler,
const AffineConstraints< Number > &  constraints,
const Quadrature< 1 > &  quad,
const AdditionalData additional_data = AdditionalData() 
)

Initializes the data structures. Same as above but using a Q1 mapping.

◆ get_data()

template<int dim, typename Number = double>
Data CUDAWrappers::MatrixFree< dim, Number >::get_data ( unsigned int  color) const

Return the Data structure associated with color.

◆ cell_loop()

template<int dim, typename Number = double>
template<typename Functor , typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::cell_loop ( const Functor &  func,
const VectorType &  src,
VectorType &  dst 
) const

This method runs the loop over all cells and apply the local operation on each element in parallel. func is a functor which is applied on each color.

func needs to define

__device__ void operator()(
const unsigned int cell,
const Number * src,
Number * dst) const;
static const unsigned int n_dofs_1d;
static const unsigned int n_local_dofs;
static const unsigned int n_q_points;

◆ evaluate_coefficients()

template<int dim, typename Number = double>
template<typename Functor >
void CUDAWrappers::MatrixFree< dim, Number >::evaluate_coefficients ( Functor  func) const

This method runs the loop over all cells and apply the local operation on each element in parallel. This function is very similar to cell_loop() but it uses a simpler functor.

func needs to define

__device__ void operator()(
const unsigned int cell,
static const unsigned int n_dofs_1d;
static const unsigned int n_local_dofs;
static const unsigned int n_q_points;

◆ copy_constrained_values()

template<int dim, typename Number = double>
template<typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::copy_constrained_values ( const VectorType &  src,
VectorType &  dst 
) const

Copy the values of the constrained entries from src to dst. This is used to impose zero Dirichlet boundary condition.

◆ set_constrained_values()

template<int dim, typename Number = double>
template<typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::set_constrained_values ( const Number  val,
VectorType &  dst 
) const

Set the entries in dst corresponding to constrained values to val. The main purpose of this function is to set the constrained entries of the source vector used in cell_loop() to zero.

◆ initialize_dof_vector() [1/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::initialize_dof_vector ( LinearAlgebra::CUDAWrappers::Vector< Number > &  vec) const

Initialize a serial vector. The size corresponds to the number of degrees of freedom in the DoFHandler object.

◆ initialize_dof_vector() [2/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::initialize_dof_vector ( LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  vec) const

Initialize a distributed vector. The local elements correspond to the locally owned degrees of freedom and the ghost elements correspond to the (additional) locally relevant dofs.

◆ get_colored_graph()

template<int dim, typename Number = double>
const std::vector< std::vector< CellFilter > > & CUDAWrappers::MatrixFree< dim, Number >::get_colored_graph ( ) const

Return the colored graph of locally owned active cells.

◆ get_vector_partitioner()

template<int dim, typename Number = double>
const std::shared_ptr< const Utilities::MPI::Partitioner > & CUDAWrappers::MatrixFree< dim, Number >::get_vector_partitioner ( ) const

Return the partitioner that represents the locally owned data and the ghost indices where access is needed to for the cell loop. The partitioner is constructed from the locally owned dofs and ghost dofs given by the respective fields. If you want to have specific information about these objects, you can query them with the respective access functions. If you just want to initialize a (parallel) vector, you should usually prefer this data structure as the data exchange information can be reused from one vector to another.

◆ free()

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::free ( )

Free all the memory allocated.

◆ get_dof_handler()

template<int dim, typename Number = double>
const DoFHandler< dim > & CUDAWrappers::MatrixFree< dim, Number >::get_dof_handler ( ) const

Return the DoFHandler.

◆ memory_consumption()

template<int dim, typename Number = double>
std::size_t CUDAWrappers::MatrixFree< dim, Number >::memory_consumption ( ) const

Return an approximation of the memory consumption of this class in bytes.

◆ internal_reinit()

template<int dim, typename Number = double>
template<typename IteratorFiltersType >
void CUDAWrappers::MatrixFree< dim, Number >::internal_reinit ( const Mapping< dim > &  mapping,
const DoFHandler< dim > &  dof_handler,
const AffineConstraints< Number > &  constraints,
const Quadrature< 1 > &  quad,
const IteratorFiltersType &  iterator_filter,
std::shared_ptr< const MPI_Comm comm,
const AdditionalData  additional_data 
)
private

Initializes the data structures.

◆ serial_cell_loop()

template<int dim, typename Number = double>
template<typename Functor , typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::serial_cell_loop ( const Functor &  func,
const VectorType &  src,
VectorType &  dst 
) const
private

Helper function. Loop over all the cells and apply the functor on each element in parallel. This function is used when MPI is not used.

◆ distributed_cell_loop() [1/2]

template<int dim, typename Number = double>
template<typename Functor >
void CUDAWrappers::MatrixFree< dim, Number >::distributed_cell_loop ( const Functor &  func,
const LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  src,
LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  dst 
) const
private

Helper function. Loop over all the cells and apply the functor on each element in parallel. This function is used when MPI is used.

◆ distributed_cell_loop() [2/2]

template<int dim, typename Number = double>
template<typename Functor >
void CUDAWrappers::MatrixFree< dim, Number >::distributed_cell_loop ( const Functor &  func,
const LinearAlgebra::CUDAWrappers::Vector< Number > &  src,
LinearAlgebra::CUDAWrappers::Vector< Number > &  dst 
) const
private

This function should never be called. Calling it results in an internal error. This function exists only because cell_loop needs distributed_cell_loop() to exist for LinearAlgebra::CUDAWrappers::Vector.

◆ serial_copy_constrained_values()

template<int dim, typename Number = double>
template<typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::serial_copy_constrained_values ( const VectorType &  src,
VectorType &  dst 
) const
private

Helper function. Copy the values of the constrained entries of src to dst. This function is used when MPI is not used.

◆ distributed_copy_constrained_values() [1/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::distributed_copy_constrained_values ( const LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  src,
LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  dst 
) const
private

Helper function. Copy the values of the constrained entries of src to dst. This function is used when MPI is used.

◆ distributed_copy_constrained_values() [2/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::distributed_copy_constrained_values ( const LinearAlgebra::CUDAWrappers::Vector< Number > &  src,
LinearAlgebra::CUDAWrappers::Vector< Number > &  dst 
) const
private

This function should never be called. Calling it results in an internal error. This function exists only because copy_constrained_values needs distributed_copy_constrained_values() to exist for LinearAlgebra::CUDAWrappers::Vector.

◆ serial_set_constrained_values()

template<int dim, typename Number = double>
template<typename VectorType >
void CUDAWrappers::MatrixFree< dim, Number >::serial_set_constrained_values ( const Number  val,
VectorType &  dst 
) const
private

Helper function. Set the constrained entries of dst to val. This function is used when MPI is not used.

◆ distributed_set_constrained_values() [1/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::distributed_set_constrained_values ( const Number  val,
LinearAlgebra::distributed::Vector< Number, MemorySpace::CUDA > &  dst 
) const
private

Helper function. Set the constrained entries of dst to val. This function is used when MPI is used.

◆ distributed_set_constrained_values() [2/2]

template<int dim, typename Number = double>
void CUDAWrappers::MatrixFree< dim, Number >::distributed_set_constrained_values ( const Number  val,
LinearAlgebra::CUDAWrappers::Vector< Number > &  dst 
) const
private

This function should never be called. Calling it results in an internal error. This function exists only because set_constrained_values needs distributed_set_constrained_values() to exist for LinearAlgebra::CUDAWrappers::Vector.

Friends And Related Function Documentation

◆ internal::ReinitHelper< dim, Number >

template<int dim, typename Number = double>
friend class internal::ReinitHelper< dim, Number >
friend

Definition at line 659 of file cuda_matrix_free.h.

◆ q_point_id_in_cell()

template<int dim>
unsigned int q_point_id_in_cell ( const unsigned int  n_q_points_1d)
related

Compute the quadrature point index in the local cell of a given thread.

Definition at line 731 of file cuda_matrix_free.h.

◆ local_q_point_id()

template<int dim, typename Number >
unsigned int local_q_point_id ( const unsigned int  cell,
const typename CUDAWrappers::MatrixFree< dim, Number >::Data *  data,
const unsigned int  n_q_points_1d,
const unsigned int  n_q_points 
)
related

Return the quadrature point index local of a given thread. The index is only unique for a given MPI process.

Definition at line 750 of file cuda_matrix_free.h.

◆ get_quadrature_point()

template<int dim, typename Number >
CUDAWrappers::MatrixFree< dim, Number >::point_type & get_quadrature_point ( const unsigned int  cell,
const typename CUDAWrappers::MatrixFree< dim, Number >::Data *  data,
const unsigned int  n_q_points_1d 
)
related

Return the quadrature point associated with a given thread.

Definition at line 769 of file cuda_matrix_free.h.

◆ copy_mf_data_to_host()

template<int dim, typename Number >
DataHost< dim, Number > copy_mf_data_to_host ( const typename ::CUDAWrappers::MatrixFree< dim, Number >::Data &  data,
const UpdateFlags update_flags 
)
related

Copy data from the device to the device. update_flags should be identical to the one used in MatrixFree::AdditionalData.

Definition at line 849 of file cuda_matrix_free.h.

◆ local_q_point_id_host()

template<int dim, typename Number >
unsigned int local_q_point_id_host ( const unsigned int  cell,
const DataHost< dim, Number > &  data,
const unsigned int  n_q_points,
const unsigned int  i 
)
related

This function is the host version of local_q_point_id().

Definition at line 902 of file cuda_matrix_free.h.

◆ get_quadrature_point_host()

template<int dim, typename Number >
Point< dim, Number > get_quadrature_point_host ( const unsigned int  cell,
const DataHost< dim, Number > &  data,
const unsigned int  i 
)
related

This function is the host version of get_quadrature_point(). It assumes that the data in MatrixFree<dim, Number>::Data has been copied to the host using copy_mf_data_to_host().

Definition at line 921 of file cuda_matrix_free.h.

Member Data Documentation

◆ my_id

template<int dim, typename Number = double>
int CUDAWrappers::MatrixFree< dim, Number >::my_id
private

Unique ID associated with the object.

Definition at line 514 of file cuda_matrix_free.h.

◆ parallelization_scheme

template<int dim, typename Number = double>
ParallelizationScheme CUDAWrappers::MatrixFree< dim, Number >::parallelization_scheme
private

Parallelization scheme used, parallelization over degrees of freedom or over cells.

Definition at line 520 of file cuda_matrix_free.h.

◆ use_coloring

template<int dim, typename Number = double>
bool CUDAWrappers::MatrixFree< dim, Number >::use_coloring
private

If true, use graph coloring. Otherwise, use atomic operations. Graph coloring ensures bitwise reproducibility but is slower on Pascal and newer architectures.

Definition at line 527 of file cuda_matrix_free.h.

◆ overlap_communication_computation

template<int dim, typename Number = double>
bool CUDAWrappers::MatrixFree< dim, Number >::overlap_communication_computation
private

Overlap MPI communications with computation. This requires CUDA-aware MPI and use_coloring must be false.

Definition at line 533 of file cuda_matrix_free.h.

◆ n_dofs

template<int dim, typename Number = double>
types::global_dof_index CUDAWrappers::MatrixFree< dim, Number >::n_dofs
private

Total number of degrees of freedom.

Definition at line 538 of file cuda_matrix_free.h.

◆ fe_degree

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::fe_degree
private

Degree of the finite element used.

Definition at line 543 of file cuda_matrix_free.h.

◆ dofs_per_cell

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::dofs_per_cell
private

Number of degrees of freedom per cell.

Definition at line 548 of file cuda_matrix_free.h.

◆ n_constrained_dofs

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::n_constrained_dofs
private

Number of constrained degrees of freedom.

Definition at line 553 of file cuda_matrix_free.h.

◆ q_points_per_cell

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::q_points_per_cell
private

Number of quadrature points per cells.

Definition at line 558 of file cuda_matrix_free.h.

◆ n_colors

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::n_colors
private

Number of colors produced by the graph coloring algorithm.

Definition at line 563 of file cuda_matrix_free.h.

◆ n_cells

template<int dim, typename Number = double>
std::vector<unsigned int> CUDAWrappers::MatrixFree< dim, Number >::n_cells
private

Number of cells in each color.

Definition at line 568 of file cuda_matrix_free.h.

◆ q_points

template<int dim, typename Number = double>
std::vector<point_type *> CUDAWrappers::MatrixFree< dim, Number >::q_points
private

Vector of pointers to the quadrature points associated to the cells of each color.

Definition at line 574 of file cuda_matrix_free.h.

◆ local_to_global

template<int dim, typename Number = double>
std::vector<types::global_dof_index *> CUDAWrappers::MatrixFree< dim, Number >::local_to_global
private

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

Definition at line 580 of file cuda_matrix_free.h.

◆ inv_jacobian

template<int dim, typename Number = double>
std::vector<Number *> CUDAWrappers::MatrixFree< dim, Number >::inv_jacobian
private

Vector of pointer to the inverse Jacobian associated to the cells of each color.

Definition at line 586 of file cuda_matrix_free.h.

◆ JxW

template<int dim, typename Number = double>
std::vector<Number *> CUDAWrappers::MatrixFree< dim, Number >::JxW
private

Vector of pointer to the Jacobian times the weights associated to the cells of each color.

Definition at line 592 of file cuda_matrix_free.h.

◆ constrained_dofs

template<int dim, typename Number = double>
types::global_dof_index* CUDAWrappers::MatrixFree< dim, Number >::constrained_dofs
private

Pointer to the constrained degrees of freedom.

Definition at line 597 of file cuda_matrix_free.h.

◆ constraint_mask

template<int dim, typename Number = double>
std::vector<::internal::MatrixFreeFunctions::ConstraintKinds *> CUDAWrappers::MatrixFree< dim, Number >::constraint_mask
private

Mask deciding where constraints are set on a given cell.

Definition at line 603 of file cuda_matrix_free.h.

◆ grid_dim

template<int dim, typename Number = double>
std::vector<dim3> CUDAWrappers::MatrixFree< dim, Number >::grid_dim
private

Grid dimensions associated to the different colors. The grid dimensions are used to launch the CUDA kernels.

Definition at line 609 of file cuda_matrix_free.h.

◆ block_dim

template<int dim, typename Number = double>
std::vector<dim3> CUDAWrappers::MatrixFree< dim, Number >::block_dim
private

Block dimensions associated to the different colors. The block dimensions are used to launch the CUDA kernels.

Definition at line 615 of file cuda_matrix_free.h.

◆ partitioner

template<int dim, typename Number = double>
std::shared_ptr<const Utilities::MPI::Partitioner> CUDAWrappers::MatrixFree< dim, Number >::partitioner
private

Shared pointer to a Partitioner for distributed Vectors used in cell_loop. When MPI is not used the pointer is null.

Definition at line 621 of file cuda_matrix_free.h.

◆ cells_per_block

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::cells_per_block
private

Cells per block (determined by the function cells_per_block_shmem() ).

Definition at line 626 of file cuda_matrix_free.h.

◆ constraint_grid_dim

template<int dim, typename Number = double>
dim3 CUDAWrappers::MatrixFree< dim, Number >::constraint_grid_dim
private

Grid dimensions used to launch the CUDA kernels in *_constrained_values-operations.

Definition at line 632 of file cuda_matrix_free.h.

◆ constraint_block_dim

template<int dim, typename Number = double>
dim3 CUDAWrappers::MatrixFree< dim, Number >::constraint_block_dim
private

Block dimensions used to launch the CUDA kernels in *_constrained_values-operations.

Definition at line 638 of file cuda_matrix_free.h.

◆ padding_length

template<int dim, typename Number = double>
unsigned int CUDAWrappers::MatrixFree< dim, Number >::padding_length
private

Length of the padding (closest power of two larger than or equal to the number of thread).

Definition at line 644 of file cuda_matrix_free.h.

◆ row_start

template<int dim, typename Number = double>
std::vector<unsigned int> CUDAWrappers::MatrixFree< dim, Number >::row_start
private

Row start of each color.

Definition at line 649 of file cuda_matrix_free.h.

◆ dof_handler

template<int dim, typename Number = double>
const DoFHandler<dim>* CUDAWrappers::MatrixFree< dim, Number >::dof_handler
private

Pointer to the DoFHandler associated with the object.

Definition at line 654 of file cuda_matrix_free.h.

◆ graph

template<int dim, typename Number = double>
std::vector<std::vector<CellFilter> > CUDAWrappers::MatrixFree< dim, Number >::graph
private

Colored graphed of locally owned active cells.

Definition at line 659 of file cuda_matrix_free.h.


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