34static inline void __TTL_dump_shape_t(
const TTL_shape *
const ttl_shape) {
35 printf(
"TTL_shape: %d,%d,%d ", ttl_shape->
width, ttl_shape->
height, ttl_shape->
depth);
45static inline void __TTL_dump_layout_t(
const TTL_layout *
const ttl_layout) {
56static inline void __TTL_dump_offset_t(
const TTL_offset *
const ttl_offset) {
57 printf(
"TTL_offset: %d,%d,%d ", ttl_offset->
x, ttl_offset->
y, ttl_offset->
z);
67static inline void __TTL_dump_overlap_t(
const TTL_overlap *
const ttl_overlap) {
68 printf(
"TTL_overlap: %d,%d,%d ", ttl_overlap->
width, ttl_overlap->
height, ttl_overlap->
depth);
78static inline void __TTL_dump_augmentation_t(
const TTL_augmentation *
const ttl_augmented) {
79 printf(
"TTL_augmentation: (%d,%d),(%d,%d),(%d,%d), ",
95static inline void __TTL_dump_tile_t(
const TTL_tile *
const ttl_tile) {
97 __TTL_dump_shape_t(&ttl_tile->
shape);
98 __TTL_dump_offset_t(&ttl_tile->
offset);
108template <
typename TENSORTYPE>
110 printf(
"TTL_int_tensor_t: %p,%d ", ttl_int_tensor->
base, ttl_int_tensor->
elem_size);
111 __TTL_dump_layout_t(&ttl_int_tensor->
layout);
112 __TTL_dump_shape_t(&ttl_int_tensor->
shape);
122template <
typename TENSORTYPE>
124 printf(
"TTL_int_sub_tensor_t: ");
125 __TTL_dump_int_tensor_t(&ttl_int_sub_tensor->
tensor);
126 __TTL_dump_shape(&ttl_int_sub_tensor->
origin.
shape);
137static inline void __TTL_dump_tiler_t(
const TTL_tiler *
const ttl_tiler) {
138 printf(
"TTL_tiler: ");
139 __TTL_dump_shape_t(&ttl_tiler->
space);
140 __TTL_dump_shape_t(&ttl_tiler->
tile);
141 __TTL_dump_overlap_t(&ttl_tiler->
overlap);
142 printf(
"Cache: %d,%d,%d,%d,%d ",
161template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
164 const int access_type,
const TTL_event *
const event,
165 const unsigned int line) {
166 printf(is_export ?
"Export " :
"Import ");
167 __TTL_dump_shape_t(&internal_tensor->
shape);
168 __TTL_dump_event(event);
169 printf(
" AccessType: %d\n ", access_type);
170 __TTL_dump_const_ext_tensor_t(external_tensor);
172 __TTL_dump_const_int_tensor_t(internal_tensor);
173 printf(
"\n line: %d\n", line);
176static inline void __TTL_dump_wait(
int num_events,
TTL_event *events,
const unsigned int line) {
177 printf(
"TTL_WAIT: ");
178 for (
int i = 0; i < num_events; i++) {
179 __TTL_dump_event(&events[i]);
181 printf(
"\n line: %d\n", line);
185static inline void __TTL_dump_wait(
int ,
TTL_event * ,
const unsigned int ) {}
187template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
188static inline void __TTL_dump_transaction(
const bool ,
192 const unsigned int ){};
event_t TTL_event
TTL_event is a pseudonym for OpenCL event_t.
3D description of the augmented margins
TTL_augmented_dim right
Right hand augmentation in elements.
TTL_augmented_dim bottom
Bottom augmentation in elements.
TTL_augmented_dim back
Back augmentation in elements.
TTL_augmented_dim front
Front augmentation in elements.
TTL_augmented_dim top
Top augmentation in elements.
TTL_augmented_dim left
Left hand augmentation in elements.
Description of a Tensor layout in memory.
TTL_dim plane_spacing
The distance between the start of consequtive planes in units of elements.
TTL_dim row_spacing
The distance between the start of consequtive rows in units of elements.
Description of the 3D offset of an object.
TTL_offset_dim z
Offset in dimension z.
TTL_offset_dim y
Offset in dimension y.
TTL_offset_dim x
Offset in dimension x.
Description of the overlap in 3D space of adjacent tiles.
TTL_overlap_dim depth
depth overlap in elements
TTL_overlap_dim height
height overlap in elements
TTL_overlap_dim width
width overlap in elements
TTL_dim height
Number of rows along dimension y.
TTL_dim depth
Number of planes along dimension z.
TTL_dim width
Number of elements along dimension x.
TTL_offset sub_offset
The offset of the sub tensor from the origin sensor.
TTL_shape shape
The shape of the origin tensor in 3 dimensions.
A tensor plus its reference to its parent tensor.
TTL_tensor< TENSORTYPE > tensor
A poor mans base class for an a tensor in the passed address space.
TTL_tiler is the basic unit that describes how a tile is subdivided.
TTL_shape space
Represents the space to be tiled such as an image.
TTL_overlap overlap
When zeroes represent no overlap.
struct TTL_tiler::@153017064222336267371240241203244373062067161267 cache
Precomputed information to speed up later reuse.