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 | Public Attributes | Static Public Attributes | List of all members
internal::SolverGMRESImplementation::DeviceData< Number > Struct Template Reference

Detailed Description

template<typename Number>
struct internal::SolverGMRESImplementation::DeviceData< Number >

Forward declaration of device-side data (pointer arrays, coefficients, partial sums) of the orthogonalization kernels for LinearAlgebra::distributed::Vector<Number, MemorySpace::Default>.

Definition at line 623 of file solver_gmres.cc.

Inheritance diagram for internal::SolverGMRESImplementation::DeviceData< Number >:
[legend]

Public Types

using ExecutionSpace = MemorySpace::Default::kokkos_space::execution_space
 
using KokkosSpace = MemorySpace::Default::kokkos_space
 

Public Member Functions

void set_pointers (const ExecutionSpace &exec, const std::vector< const Number * > &vector_ptrs)
 
void set_coefficients (const ExecutionSpace &exec, const std::size_t n_coefficients, const double *h)
 
void reserve_results (const std::size_t n_teams, const std::size_t n_results)
 

Public Attributes

Kokkos::View< DevicePointer< Number > *, KokkosSpace > ptrs
 
Kokkos::View< DevicePointer< Number > *, KokkosSpace >::host_mirror_type ptrs_host
 
Kokkos::View< double *, KokkosSpace > coefficients
 
Kokkos::View< double *, KokkosSpace >::host_mirror_type coefficients_host
 
Kokkos::View< double **, Kokkos::LayoutLeft, KokkosSpace > partial_sums
 
Kokkos::View< double *, KokkosSpace > results
 
Kokkos::View< double *, KokkosSpace >::host_mirror_type results_host
 

Static Public Attributes

static constexpr std::size_t rows_per_team = 2048
 
static constexpr int block_size = 8
 

Member Typedef Documentation

◆ ExecutionSpace

template<typename Number >
using internal::SolverGMRESImplementation::DeviceData< Number >::ExecutionSpace = MemorySpace::Default::kokkos_space::execution_space

Definition at line 625 of file solver_gmres.cc.

◆ KokkosSpace

template<typename Number >
using internal::SolverGMRESImplementation::DeviceData< Number >::KokkosSpace = MemorySpace::Default::kokkos_space

Definition at line 627 of file solver_gmres.cc.

Member Function Documentation

◆ set_pointers()

template<typename Number >
void internal::SolverGMRESImplementation::DeviceData< Number >::set_pointers ( const ExecutionSpace &  exec,
const std::vector< const Number * > &  vector_ptrs 
)
inline

Definition at line 644 of file solver_gmres.cc.

◆ set_coefficients()

template<typename Number >
void internal::SolverGMRESImplementation::DeviceData< Number >::set_coefficients ( const ExecutionSpace &  exec,
const std::size_t  n_coefficients,
const double *  h 
)
inline

Definition at line 667 of file solver_gmres.cc.

◆ reserve_results()

template<typename Number >
void internal::SolverGMRESImplementation::DeviceData< Number >::reserve_results ( const std::size_t  n_teams,
const std::size_t  n_results 
)
inline

Definition at line 687 of file solver_gmres.cc.

Member Data Documentation

◆ rows_per_team

template<typename Number >
constexpr std::size_t internal::SolverGMRESImplementation::DeviceData< Number >::rows_per_team = 2048
staticconstexpr

Number of vector entries processed by one team in the kernel of do_Tvmult_add_device(). The entries of the current vector (and the previous vector in the delayed variant) of a tile are re-read from the L1/L2 caches for every block of vectors, whereas the orthogonal vectors are read from main memory only once.

Definition at line 636 of file solver_gmres.cc.

◆ block_size

template<typename Number >
constexpr int internal::SolverGMRESImplementation::DeviceData< Number >::block_size = 8
staticconstexpr

Number of vectors handled at once in do_Tvmult_add_device().

Definition at line 641 of file solver_gmres.cc.

◆ ptrs

template<typename Number >
Kokkos::View<DevicePointer<Number> *, KokkosSpace> internal::SolverGMRESImplementation::DeviceData< Number >::ptrs

Definition at line 707 of file solver_gmres.cc.

◆ ptrs_host

template<typename Number >
Kokkos::View<DevicePointer<Number>*,KokkosSpace>::host_mirror_type internal::SolverGMRESImplementation::DeviceData< Number >::ptrs_host

Definition at line 709 of file solver_gmres.cc.

◆ coefficients

template<typename Number >
Kokkos::View<double *, KokkosSpace> internal::SolverGMRESImplementation::DeviceData< Number >::coefficients

Definition at line 711 of file solver_gmres.cc.

◆ coefficients_host

template<typename Number >
Kokkos::View<double*,KokkosSpace>::host_mirror_type internal::SolverGMRESImplementation::DeviceData< Number >::coefficients_host

Definition at line 713 of file solver_gmres.cc.

◆ partial_sums

template<typename Number >
Kokkos::View<double **, Kokkos::LayoutLeft, KokkosSpace> internal::SolverGMRESImplementation::DeviceData< Number >::partial_sums

Definition at line 717 of file solver_gmres.cc.

◆ results

template<typename Number >
Kokkos::View<double *, KokkosSpace> internal::SolverGMRESImplementation::DeviceData< Number >::results

Definition at line 719 of file solver_gmres.cc.

◆ results_host

template<typename Number >
Kokkos::View<double*,KokkosSpace>::host_mirror_type internal::SolverGMRESImplementation::DeviceData< Number >::results_host

Definition at line 721 of file solver_gmres.cc.


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