Shortcuts

Template Struct SharedWrapper

Struct Documentation

template<typename T>
struct ripple::SharedWrapper

This is a wrapper type which stores a type which should be placed into shared memory when passed to a kernel.

This class simply wrapps the type to store in shared memory so that different functions can be overloaded to enable or disable shared memory functionality.

Template Parameters
  • T: The type to wrap for shared memory.

Public Functions

auto padded() const noexcept -> bool

Determines if the wrapper is padded or not.

Return

true if the padding is valid, otherwise false.

auto offset_amount() const noexcept -> ExpType

Gets the amount of offset based on the expansion and overlap.

Return

The amount of offset when creating an iterator.

Public Members

T wrapped

The wrapped type for shared memory.

PaddingType padding = invalid_padding

The padding for the type.

ExpType expansion = 0

Amount of padding to not consider.

ExpType overlap = 0

Amount of overlap.

Public Static Attributes

constexpr PaddingType invalid_padding = std::numeric_limits<PaddingType>::max()

Defines a size for invalid padding.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples