XeTLA v0.3.6
IntelĀ® Xe Templates for Linear Algebra - API Definition Document
 
Loading...
Searching...
No Matches
gpu::xetla::xetla_vector_ref Concept Reference

Workaround for ESIMD vector(1D) ref type. More...

#include <base_types.hpp>

Concept definition

template<typename Ta, typename Ty, uint32_t N>
concept gpu::xetla::xetla_vector_ref = __ESIMD_NS::detail::is_simd_view_type_v<
Ta> && std::is_same_v<typename Ta::element_type, native_type_t<Ty>> &&(N
== __ESIMD_NS::shape_type<Ta>::type::Size_x
* __ESIMD_NS::shape_type<Ta>::type::Size_y)
Workaround for ESIMD vector(1D) ref type.
Definition base_types.hpp:187

Detailed Description

Workaround for ESIMD vector(1D) ref type.

Use C++20 concept to constrains the scope of auto.

Note
Need to be used together with __REF__, i.e. "xetla_vector_ref __REF__" is the full declaration of xetla vector reference.
Template Parameters
Tafirst tparam is reserved for auto.
Tydata type in xetla_vector_ref.
Ndata length in xetla_vector_ref.