RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Member Functions | List of all members
RAJA::detail::SoAArray< T, size > Class Template Reference

Array class specialized for Struct of Array data layout. More...

#include <SoAArray.hpp>

Public Member Functions

constexpr RAJA_HOST_DEVICE value_type get (size_t i) const
 
constexpr RAJA_HOST_DEVICE void set (size_t i, value_type val)
 

Detailed Description

template<typename T, size_t size>
class RAJA::detail::SoAArray< T, size >

Array class specialized for Struct of Array data layout.

This is useful for creating a vectorizable data layout and getting coalesced memory accesses or avoiding shared memory bank conflicts in cuda.

Member Function Documentation

◆ get()

template<typename T , size_t size>
constexpr RAJA_HOST_DEVICE value_type RAJA::detail::SoAArray< T, size >::get ( size_t  i) const
inlineconstexpr

◆ set()

template<typename T , size_t size>
constexpr RAJA_HOST_DEVICE void RAJA::detail::SoAArray< T, size >::set ( size_t  i,
value_type  val 
)
inlineconstexpr

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