alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::concepts::impl::IView Concept Reference

Interface concept for objects describing api-related multidimensional memory access. More...

#include <IView.hpp>

Concept definition

template<typename T, typename T_Mut, typename T_Const>
concept IView = requires(T t, alpaka::Vec<typename T::index_type, T::dim()> vec) {
{ t.getApi() } -> alpaka::concepts::Api;
Concept to check for APIs.
Definition api.hpp:42
Interface concept for objects describing multidimensional memory access.
Definition IMdSpan.hpp:54
Interface concept for objects describing api-related multidimensional memory access.
Definition IView.hpp:28

Creates a sub view to a part of the memory.

t.getSubView(vec /* extents */) /* -> alpaka::concepts::impl::IView */;
t.getSubView(vec /* offset */, vec /* extents */) /* -> alpaka::concepts::impl::IView */;
}

Detailed Description

Interface concept for objects describing api-related multidimensional memory access.

An alpaka::view-like object contains information about the device(s) to which it is connected. The alpaka::view-like object has no memory ownership, and therefore, it does not manage the memory lifetime. The represented memory can have any dimensionality.

Any object fitting the IView concept is also an IMdSpan.

Definition at line 28 of file IView.hpp.