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

Workaround for ESIMD matrix(2D) ref type. More...

#include <base_types.hpp>

Concept definition

template<typename Ta, typename Ty, uint32_t N1, uint32_t N2>
concept gpu::xetla::xetla_matrix_ref = __ESIMD_NS::detail::is_simd_view_type_v<Ta> && std::is_same_v<
typename Ta::element_type, native_type_t<Ty>> &&(N1
== __ESIMD_NS::shape_type<Ta>::type::Size_y)
&& (N2 == __ESIMD_NS::shape_type<Ta>::type::Size_x)
Workaround for ESIMD matrix(2D) ref type.
Definition base_types.hpp:202

Detailed Description

Workaround for ESIMD matrix(2D) ref type.

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

Note
Need to be used together with __REF__, i.e. "xetla_matrix_ref __REF__" is the full declaration of xetla matrix reference.
Template Parameters
Tafirst tparam is reserved for auto.
Tydata type in xetla_matrix_ref.
N1row num in xetla_matrix_ref.
N2col num in xetla_matrix_ref.