29 desc.xetla_format<uint64_t>().xetla_select<1, 1>(0) = base_address;
33 desc.xetla_format<uint32_t>().xetla_select<1, 1>(0) = base_address;
36 return desc.xetla_format<uint64_t>().xetla_select<1, 1>(0)[0];
41 desc.xetla_format<uint32_t>().xetla_select<1, 1>(2) = width_x;
44 return desc.xetla_format<uint32_t>().xetla_select<1, 1>(2)[0];
49 desc.xetla_format<uint32_t>().xetla_select<1, 1>(3) = width_y;
52 return desc.xetla_format<uint32_t>().xetla_select<1, 1>(3)[0];
57 desc.xetla_format<uint32_t>().xetla_select<1, 1>(4) = pitch_x;
60 return desc.xetla_format<uint32_t>().xetla_select<1, 1>(4)[0];
65 desc.xetla_format<int32_t>().xetla_select<1, 1>(5) = offset_x;
68 return desc.xetla_format<int32_t>().xetla_select<1, 1>(5)[0];
73 desc.xetla_format<int32_t>().xetla_select<1, 1>(6) = offset_y;
76 return desc.xetla_format<int32_t>().xetla_select<1, 1>(6)[0];
81 desc.xetla_format<uint32_t>().xetla_select<1, 1>(7)
82 = block_widthx_widthy_arrlen;
85 return desc.xetla_format<uint8_t>().xetla_select<1, 1>(28)[0];
88 return desc.xetla_format<uint8_t>().xetla_select<1, 1>(29)[0];
91 return desc.xetla_format<uint8_t>().xetla_select<1, 1>(30)[0];
#define __XETLA_API
Definition common.hpp:43
xetla_vector< uint32_t, 16 > xetla_tdescriptor
Description of nd tensor descriptor for load and store.
Definition base_types.hpp:155
#define xetla_tdescriptor_ref
Alias to xetla_vector<uint32_t, 16> reference.
Definition base_types.hpp:158
__XETLA_API void xetla_set_tensor_offset_y(xetla_tdescriptor_ref desc, int32_t offset_y)
Definition tensor_descriptor.hpp:71
__XETLA_API uint8_t xetla_get_block_array_len(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:90
__XETLA_API uint8_t xetla_get_block_width_x(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:84
__XETLA_API uint32_t xetla_get_tensor_width_y(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:51
__XETLA_API void xetla_set_tensor_width_x(xetla_tdescriptor_ref desc, uint32_t width_x)
Definition tensor_descriptor.hpp:39
__XETLA_API void xetla_set_tensor_width_y(xetla_tdescriptor_ref desc, uint32_t width_y)
Definition tensor_descriptor.hpp:47
__XETLA_API uint32_t xetla_get_tensor_width_x(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:43
__XETLA_API void xetla_set_tensor_base_address(xetla_tdescriptor_ref desc, uint64_t base_address)
Definition tensor_descriptor.hpp:27
__XETLA_API void xetla_set_tensor_offset_x(xetla_tdescriptor_ref desc, int32_t offset_x)
Definition tensor_descriptor.hpp:63
__XETLA_API uint8_t xetla_get_block_width_y(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:87
__XETLA_API void xetla_set_tensor_pitch_x(xetla_tdescriptor_ref desc, uint32_t pitch_x)
Definition tensor_descriptor.hpp:55
__XETLA_API void xetla_set_block_widthx_widthy_arrlen(xetla_tdescriptor_ref desc, uint32_t block_widthx_widthy_arrlen)
Definition tensor_descriptor.hpp:79
__XETLA_API int32_t xetla_get_tensor_offset_x(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:67
__XETLA_API uint64_t xetla_get_tensor_base_address(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:35
__XETLA_API uint32_t xetla_get_tensor_pitch_x(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:59
__XETLA_API int32_t xetla_get_tensor_offset_y(xetla_tdescriptor desc)
Definition tensor_descriptor.hpp:75
Definition arch_config.hpp:24