36template <
typename TENSORTYPE>
98 if (next_tile.
empty() ==
false) {
133template <
typename TENSORTYPE>
171 m_common.ext_tensor_in = ext_tensor;
static void TTL_wait(const int num_events, TTL_event_t *const events)
event_t TTL_event
TTL_event is a pseudonym for OpenCL event_t.
#define TTL_local(type)
Create a typed reference in the __local address space.
static void TTL_import_sub_tensor(const TTL_int_void_sub_tensor_t internal_sub_tensor, const TTL_const_ext_void_tensor_t const_external_tensor, TTL_event_t *event)
Implementation of TTL_import_sub_tensor.
static void TTL_export(const TTL_const_int_void_tensor_t internal_tensor, const TTL_ext_void_tensor_t external_tensor, TTL_event_t *event)
Export the external tensor to the internal tensor returning when complete.
TTL_sub_tensor< TENSORTYPE > step_buffering(TTL_tile tile_current)
Wait for the previous import operation to complete before beginning an export of next tile.
TTL_common_buffering< TENSORTYPE, 2 > m_common
The information that is m_common to all pipeline schemes.
TTL_tile m_prev_tile
Store of the previous imported tile */.
void finish_buffering()
Complete any transfers required to finish the buffering process.
TTL_export_double_buffering(TTL_local(TENSORTYPE *) int_base1, TTL_local(TENSORTYPE *) int_base2, TTL_tensor< TENSORTYPE > ext_tensor, TTL_event *event)
Create a TTL_import_double_buffering and begin the buffering process.
TTL_sub_tensor< TENSORTYPE > step_buffering(const TTL_tile next_tile)
TTL_common_buffering< TENSORTYPE, 2 > m_common
The information that is m_common to all pipeline schemes.
void finish_buffering()
Complete any transfers required to finish the buffering process.
TTL_import_double_buffering(TTL_local(TENSORTYPE *) int_base1, TTL_local(TENSORTYPE *) int_base2, TTL_tensor< TENSORTYPE > ext_tensor, TTL_event *event, TTL_tile first_tile)
Create a TTL_import_double_buffering and begin the buffering process.
TTL_tile m_prev_tile
Store of the previous imported tile */.
Description of a Tensor layout in memory.
TTL_dim height
Number of rows along dimension y.
TTL_dim width
Number of elements along dimension x.
A tensor plus its reference to its parent tensor.
A poor mans base class for an a tensor in the passed address space.
bool empty() const
Check if the tile passed is empty.