Block-Structured AMR Software Framework
 
Loading...
Searching...
No Matches
amrex::SIMDindex< WIDTH, N > Struct Template Reference

#include <AMReX_GpuLaunchFunctsC.H>

Public Attributes

index = 0
 

Static Public Attributes

static constexpr int width = WIDTH
 

Detailed Description

template<int WIDTH, class N = int>
struct amrex::SIMDindex< WIDTH, N >

Helper type to store/access the SIMD width in ParallelForSIMD lambdas

Use instead of int as the running index i. Used to pass the SIMD WIDTH as compile-time meta-data into a called function/method.

Template Parameters
WIDTHSIMD width in elements
Nindex type (integer)

Member Data Documentation

◆ index

template<int WIDTH, class N = int>
N amrex::SIMDindex< WIDTH, N >::index = 0

The linear loop index of ParallelFor(SIMD)

◆ width

template<int WIDTH, class N = int>
constexpr int amrex::SIMDindex< WIDTH, N >::width = WIDTH
staticconstexpr

SIMD width in elements


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