36template <
typename TENSORTYPE>
98 if (next_tile.
empty() ==
false) {
133template <
typename TENSORTYPE>
void TTL_export(const TTL_tensor< TENSORTYPE > &internal_tensor, const TTL_tensor< TENSORTYPE > &external_tensor, TTL_event *event)
Export the external tensor to the internal tensor returning when complete.
void TTL_import_sub_tensor(const TTL_sub_tensor< TENSORTYPE > &internal_sub_tensor, const TTL_tensor< TENSORTYPE > const_external_tensor, TTL_event *event)
Implementation of TTL_import_sub_tensor.
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.
TTL_tensor< TENSORTYPE > ext_tensor_in
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.
TTL_tile()
Create an empty tile. Empty means it has all dimensions set to zero.
bool empty() const
Check if the tile passed is empty.