Shortcuts

Template Struct MultiBlock

Struct Documentation

template<typename Impl>
struct ripple::MultiBlock

An interface for types which should support contain block data for both the host and device.

Template Parameters
  • Impl: The implementation of the interface.

Public Functions

auto impl() const noexcept -> const Impl*

Gets a const pointer to the implementation.

Return

A const pointer to the implementation type.

auto impl() noexcept -> Impl*

Gets a pointer to the implementation type.

Return

A pointer to the implementation type.

auto device_iterator() noexcept -> typename MultiBlockTraits<Impl>::Iterator

Gets an iterator to the beginning of the block device data.

Return

An iterator to the beginning of the block device data.

auto host_iterator() noexcept -> typename MultiBlockTraits<Impl>::Iterator

Gets an iterator to the beginning of the block device data.

Return

An iterator to the beginning of the block device data.

decltype(auto) stream() const noexcept

Gets the stream for the block.

Return

The stream for the block.

template<typename Dim>
auto size(Dim &&dim) const noexcept -> size_t

Returns the total number of elements for the block in the given dimension.

Return

The number of elements in the given dimension.

Parameters
  • dim: The dimension to get the size of.

  • Dim: The type of the dimension specifier.

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