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

Interface concept for objects describing multidimensional memory access. More...

#include <IMdSpan.hpp>

Concept definition

template<typename T, typename T_ValueType = alpaka::NotRequired>
concept IMdSpan = requires {
requires impl::IMdSpan<
std::remove_reference_t<T>,
std::remove_const_t<std::remove_reference_t<T>>,
std::add_const_t<std::remove_reference_t<T>>>;
}
Check whether the specified data type matches the expected type, or if the expected type is alpaka::N...
Interface concept for objects describing multidimensional memory access.
Definition IMdSpan.hpp:91
Interface concept for objects describing multidimensional memory access.
Definition IMdSpan.hpp:54

Detailed Description

Interface concept for objects describing multidimensional memory access.

An object of type alpaka::mdspan does not store any information about the storage location, e.g., whether the memory is located on a CPU or a GPU.

Attention
Use alpaka::IMdSpan to restrict types in your code. The actual interface is described in alpaka::concepts::impl::IMdSpan.

Definition at line 91 of file IMdSpan.hpp.