deal.II version GIT relicensing-7182-g951947b1c4 2026-11-26 10:30:01+00:00
\(\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 Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Portable::internal::batched::SharedData< dim, Number > Struct Template Reference

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

Detailed Description

template<int dim, typename Number>
struct Portable::internal::batched::SharedData< dim, Number >

Same as Portable::MatrixFree::SharedData, but additionally contains Kokkos Views for shape data.

Definition at line 654 of file portable_evaluation_kernels.h.

Public Types

using TeamHandle = Kokkos::TeamPolicy< MemorySpace::Default::kokkos_space::execution_space >::member_type
 
using SharedViewValues = Kokkos::View< Number **, MemorySpace::Default::kokkos_space::execution_space::scratch_memory_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > >
 
using SharedViewGradients = Kokkos::View< Number ***, MemorySpace::Default::kokkos_space::execution_space::scratch_memory_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > >
 
using SharedViewScratchPad = Kokkos::View< Number *, MemorySpace::Default::kokkos_space::execution_space::scratch_memory_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > >
 
using SharedViewShapeData = Kokkos::View< Number *, MemorySpace::Default::kokkos_space::execution_space::scratch_memory_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > >
 

Public Member Functions

void reinit (const TeamHandle &team_handle, const unsigned int n_q_points_per_cell, const int batch_size, const typename MatrixFree< dim, Number >::PrecomputedData &gpu_data)
 

Static Public Member Functions

static std::size_t shmem_size (const unsigned int n_q_points_per_cell, const int batch_size, const typename MatrixFree< dim, Number >::PrecomputedData &gpu_data)
 

Public Attributes

SharedViewValues values
 
SharedViewGradients gradients
 
SharedViewScratchPad scratch_pad
 
SharedViewShapeData shape_values
 
SharedViewShapeData shape_gradients
 
SharedViewShapeData co_shape_gradients
 

Member Typedef Documentation

◆ TeamHandle

template<int dim, typename Number >
using Portable::internal::batched::SharedData< dim, Number >::TeamHandle = Kokkos::TeamPolicy< MemorySpace::Default::kokkos_space::execution_space>::member_type

Definition at line 656 of file portable_evaluation_kernels.h.

◆ SharedViewValues

template<int dim, typename Number >
using Portable::internal::batched::SharedData< dim, Number >::SharedViewValues = Kokkos::View<Number **, MemorySpace::Default::kokkos_space::execution_space:: scratch_memory_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> >

Definition at line 659 of file portable_evaluation_kernels.h.

◆ SharedViewGradients

template<int dim, typename Number >
using Portable::internal::batched::SharedData< dim, Number >::SharedViewGradients = Kokkos::View<Number ***, MemorySpace::Default::kokkos_space::execution_space:: scratch_memory_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> >

Definition at line 664 of file portable_evaluation_kernels.h.

◆ SharedViewScratchPad

template<int dim, typename Number >
using Portable::internal::batched::SharedData< dim, Number >::SharedViewScratchPad = Kokkos::View<Number *, MemorySpace::Default::kokkos_space::execution_space:: scratch_memory_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> >

Definition at line 669 of file portable_evaluation_kernels.h.

◆ SharedViewShapeData

template<int dim, typename Number >
using Portable::internal::batched::SharedData< dim, Number >::SharedViewShapeData = Kokkos::View<Number *, MemorySpace::Default::kokkos_space::execution_space:: scratch_memory_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> >

Definition at line 674 of file portable_evaluation_kernels.h.

Member Function Documentation

◆ reinit()

template<int dim, typename Number >
void Portable::internal::batched::SharedData< dim, Number >::reinit ( const TeamHandle &  team_handle,
const unsigned int  n_q_points_per_cell,
const int  batch_size,
const typename MatrixFree< dim, Number >::PrecomputedData &  gpu_data 
)
inline

Allocate Kokkos Views for a batch of batch_size cells and copy the shape data from the precomputed data to shared memory. The values, gradients and scratch pad of the cells are stored cell after cell.

Definition at line 688 of file portable_evaluation_kernels.h.

◆ shmem_size()

template<int dim, typename Number >
static std::size_t Portable::internal::batched::SharedData< dim, Number >::shmem_size ( const unsigned int  n_q_points_per_cell,
const int  batch_size,
const typename MatrixFree< dim, Number >::PrecomputedData &  gpu_data 
)
inlinestatic

Number of bytes of team scratch memory that reinit() allocates for the same arguments.

Definition at line 759 of file portable_evaluation_kernels.h.

Member Data Documentation

◆ values

template<int dim, typename Number >
SharedViewValues Portable::internal::batched::SharedData< dim, Number >::values

Memory for dof and quad values.

Definition at line 794 of file portable_evaluation_kernels.h.

◆ gradients

template<int dim, typename Number >
SharedViewGradients Portable::internal::batched::SharedData< dim, Number >::gradients

Memory for computed gradients in reference coordinate system.

Definition at line 799 of file portable_evaluation_kernels.h.

◆ scratch_pad

template<int dim, typename Number >
SharedViewScratchPad Portable::internal::batched::SharedData< dim, Number >::scratch_pad

Memory for temporary arrays required by evaluation and integration.

Definition at line 804 of file portable_evaluation_kernels.h.

◆ shape_values

template<int dim, typename Number >
SharedViewShapeData Portable::internal::batched::SharedData< dim, Number >::shape_values

Memory for shape values.

Definition at line 809 of file portable_evaluation_kernels.h.

◆ shape_gradients

template<int dim, typename Number >
SharedViewShapeData Portable::internal::batched::SharedData< dim, Number >::shape_gradients

Memory for shape gradients.

Definition at line 813 of file portable_evaluation_kernels.h.

◆ co_shape_gradients

template<int dim, typename Number >
SharedViewShapeData Portable::internal::batched::SharedData< dim, Number >::co_shape_gradients

Memory for shape gradients in the collocation space.

Definition at line 817 of file portable_evaluation_kernels.h.


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