33static inline void __TTL_dump_shape_t(
const TTL_shape_t *
const ttl_shape) {
34 printf(
"TTL_shape_t: %d,%d,%d ", ttl_shape->
width, ttl_shape->
height, ttl_shape->
depth);
37static inline void __TTL_dump_shape(
const TTL_shape_t *
const variable) {
38 __TTL_dump_shape_t(variable);
49static inline void __TTL_dump_layout_t(
const TTL_layout_t *
const ttl_layout) {
53static inline void __TTL_dump_layout(
const TTL_layout_t *
const variable) {
54 __TTL_dump_layout_t(variable);
65static inline void __TTL_dump_offset_t(
const TTL_offset_t *
const ttl_offset) {
66 printf(
"TTL_offset_t: %d,%d,%d ", ttl_offset->
x, ttl_offset->
y, ttl_offset->
z);
69static inline void __TTL_dump_offset(
const TTL_offset_t *
const variable) {
70 __TTL_dump_offset_t(variable);
81static inline void __TTL_dump_overlap_t(
const TTL_overlap_t *
const ttl_overlap) {
82 printf(
"TTL_overlap_t: %d,%d,%d ", ttl_overlap->
width, ttl_overlap->
height, ttl_overlap->
depth);
85static inline void __TTL_dump_overlap(
const TTL_overlap_t *
const variable) {
86 __TTL_dump_overlap_t(variable);
97static inline void __TTL_dump_augmentation_t(
const TTL_augmentation_t *
const ttl_augmented) {
98 printf(
"TTL_augmentation_t: (%d,%d),(%d,%d),(%d,%d), ",
100 ttl_augmented->
right,
103 ttl_augmented->
front,
104 ttl_augmented->
back);
108 __TTL_dump_augmentation_t(variable);
119static inline void __TTL_dump_tile_t(
const TTL_tile_t *
const ttl_tile) {
120 printf(
"TTL_tile_t: ");
121 __TTL_dump_shape_t(&ttl_tile->
shape);
122 __TTL_dump_offset_t(&ttl_tile->
offset);
125static inline void __TTL_dump_tile(
const TTL_tile_t *
const variable) {
126 __TTL_dump_tile_t(variable);
138 printf(
"TTL_int_tensor_t: %p,%d ", ttl_int_tensor->
base, ttl_int_tensor->
elem_size);
139 __TTL_dump_layout_t(&ttl_int_tensor->
layout);
140 __TTL_dump_shape_t(&ttl_int_tensor->
shape);
143static inline void __TTL_dump_int_tensor_t(
const TTL_int_tensor_t *
const ttl_int_tensor) {
147static inline void __TTL_dump_int_tensor(
const TTL_int_tensor_t *
const variable) {
148 __TTL_dump_int_tensor_t(variable);
159static inline void __TTL_dump_int_sub_tensor_t(
const TTL_int_sub_tensor_t *
const ttl_int_sub_tensor) {
160 printf(
"TTL_int_sub_tensor_t: ");
161 __TTL_dump_int_tensor_t(&ttl_int_sub_tensor->
tensor);
162 __TTL_dump_shape(&ttl_int_sub_tensor->
origin.
shape);
167 __TTL_dump_int_sub_tensor_t(variable);
178static inline void __TTL_dump_const_ext_tensor_t(
const TTL_const_ext_tensor_t *
const ttl_const_ext_tensor) {
179 printf(
"TTL_ext_tensor_t: "
184 __TTL_dump_layout_t(&ttl_const_ext_tensor->
layout);
185 __TTL_dump_shape_t(&ttl_const_ext_tensor->
shape);
188static inline void __TTL_dump_ext_tensor_t(
const TTL_ext_tensor_t *
const ttl_ext_tensor) {
192static inline void __TTL_dump_ext_tensor(
const TTL_ext_tensor_t *
const variable) {
193 __TTL_dump_ext_tensor_t(variable);
204static inline void __TTL_dump_tiler_t(
const TTL_tiler_t *
const ttl_tiler) {
205 printf(
"TTL_tiler_t: ");
206 __TTL_dump_shape_t(&ttl_tiler->
space);
207 __TTL_dump_shape_t(&ttl_tiler->
tile);
208 __TTL_dump_overlap_t(&ttl_tiler->
overlap);
209 printf(
"Cache: %d,%d,%d,%d,%d ",
217static inline void __TTL_dump_tiler(
const TTL_tiler_t *
const variable) {
218 __TTL_dump_tiler_t(variable);
233static inline void __TTL_dump_transaction(
const bool is_export,
const TTL_const_int_tensor_t *
const internal_tensor,
235 const TTL_event_t *
const event,
const unsigned int line) {
236 printf(is_export ?
"Export " :
"Import ");
237 __TTL_dump_shape_t(&internal_tensor->
shape);
238 __TTL_dump_event(event);
239 printf(
" AccessType: %d\n ", access_type);
240 __TTL_dump_const_ext_tensor_t(external_tensor);
242 __TTL_dump_const_int_tensor_t(internal_tensor);
243 printf(
"\n line: %d\n", line);
246static inline void __TTL_dump_wait(
int num_events,
TTL_event_t *events,
const unsigned int line) {
247 printf(
"TTL_WAIT: ");
248 for (
int i = 0; i < num_events; i++) {
249 __TTL_dump_event(&events[i]);
251 printf(
"\n line: %d\n", line);
TTL_const_ext_void_tensor_t TTL_const_ext_tensor_t
TTL_ext_void_tensor_t TTL_ext_tensor_t
static const TTL_const_ext_void_tensor_t * TTL_to_const_tensor(const TTL_ext_void_tensor_t *const tensor)
TTL_int_void_sub_tensor_t TTL_int_sub_tensor_t
TTL_const_int_void_tensor_t TTL_const_int_tensor_t
TTL_int_void_tensor_t TTL_int_tensor_t
event_t TTL_event_t
TTL_event_t is a pseudonym for OpenCL event_t.
#define __global
The opencl __global namespace is not supported in C.
3D description of the augmented margins
TTL_augmented_dim_t right
Right hand augmentation in elements.
TTL_augmented_dim_t back
Back augmentation in elements.
TTL_augmented_dim_t bottom
Bottom augmentation in elements.
TTL_augmented_dim_t top
Top augmentation in elements.
TTL_augmented_dim_t left
Left hand augmentation in elements.
TTL_augmented_dim_t front
Front augmentation in elements.
__global const void * base
__local const void * base
TTL_int_void_tensor_t tensor
struct TTL_int_void_sub_tensor_t::@266046156211021141270372070244026262143005251323 origin
Description of a Tensor layout in memory.
TTL_dim_t row_spacing
The distance between the start of consequtive rows in units of elements.
TTL_dim_t plane_spacing
The distance between the start of consequtive planes in units of elements.
Description of the 3D offset of an object.
TTL_offset_dim_t z
Offset in dimension z.
TTL_offset_dim_t y
Offset in dimension y.
TTL_offset_dim_t x
Offset in dimension x.
Description of the overlap in 3D space of adjacent tiles.
TTL_overlap_dim_t depth
depth overlap in elements
TTL_overlap_dim_t height
height overlap in elements
TTL_overlap_dim_t width
width overlap in elements
TTL_dim_t depth
Number of planes along dimension z.
TTL_dim_t width
Number of elements along dimension x.
TTL_dim_t height
Number of rows along dimension y.
TTL_tiler_t is the basic unit that describes how a tile is subdivided.
struct TTL_tiler_t::@346103000177117034076065313020113027262217277043 cache
Precomputed information to speed up later reuse.
TTL_overlap_t overlap
When zeroes represent no overlap.
TTL_shape_t space
Represents the space to be tiled such as an image.
TTL_dim_t tiles_in_height
TTL_dim_t number_of_tiles