Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::SimdPolicy< VectorLength, Properties > Class Template Reference

Execution policy over a range of 2d indices. More...

#include <Cabana_ExecutionPolicy.hpp>

Inheritance diagram for Cabana::SimdPolicy< VectorLength, Properties >:
Collaboration diagram for Cabana::SimdPolicy< VectorLength, Properties >:

Public Types

using base_type
 Kokkos team policy.
 
using index_type = typename base_type::index_type
 Index type.
 

Public Member Functions

 SimdPolicy (const index_type begin, const index_type end)
 Range constructor.
 
KOKKOS_INLINE_FUNCTION index_type structBegin () const
 Get the starting struct index.
 
KOKKOS_INLINE_FUNCTION index_type structEnd () const
 Get the ending struct index.
 
KOKKOS_INLINE_FUNCTION index_type arrayBegin (const index_type s) const
 Given a struct id get the beginning array index.
 
KOKKOS_INLINE_FUNCTION index_type arrayEnd (const index_type s) const
 Given a struct id get the ending array index.
 

Detailed Description

template<int VectorLength, class... Properties>
class Cabana::SimdPolicy< VectorLength, Properties >

Execution policy over a range of 2d indices.

Gives 2D range of indices for executing a vectorized functor over the inner array index.

Member Typedef Documentation

◆ base_type

template<int VectorLength, class... Properties>
using Cabana::SimdPolicy< VectorLength, Properties >::base_type
Initial value:
Kokkos::TeamPolicy<Properties..., Kokkos::Schedule<Kokkos::Dynamic>>

Kokkos team policy.

Constructor & Destructor Documentation

◆ SimdPolicy()

template<int VectorLength, class... Properties>
Cabana::SimdPolicy< VectorLength, Properties >::SimdPolicy ( const index_type begin,
const index_type end )
inline

Range constructor.

Parameters
beginThe beginning of the 1D range. This will be decomposed into 2D indices.
endThe ending of the 1D range. This will be decomposed into 2D indices.

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