49 __TTL_dump_wait(num_events, events, __LINE__);
63template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
80 __TTL_dump_transaction(
false, internal_tensor, external_tensor, 0, event, __LINE__);
90template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
108template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
125 __TTL_dump_transaction(
true, internal_tensor, external_tensor, 0, event, __LINE__);
136template <
typename INT_TENSORTYPE,
typename EXT_TENSORTYPE>
static void wait_group_events(int num_events, event_t *event_list)
Wait for events that identify the async_work_group_copy operations to complete.
static event_t async_work_group_copy_3D3D(void *const dst, size_t dst_offset, const void *const src, size_t src_offset, size_t num_bytes_per_element, size_t num_elements_per_line, size_t num_lines, size_t num_planes, size_t src_total_line_length, size_t src_total_plane_spacing, size_t dst_total_line_length, size_t dst_total_plane_spacing, event_t event)
#define __global
The opencl __global namespace is not supported in C.
#define __local
The opencl __local namespace is not supported in C.
unsigned char event_t
event_t is not supported, so provide a harmless placeholder
event_t TTL_event
TTL_event is a pseudonym for OpenCL event_t.
void TTL_blocking_import_base(const TTL_tensor< INT_TENSORTYPE > &internal_tensor, const TTL_tensor< EXT_TENSORTYPE > &external_tensor)
Export the external tensor to the internal tensor returning when complete.
static void TTL_blocking_export_base(const TTL_tensor< INT_TENSORTYPE > internal_tensor, const TTL_tensor< EXT_TENSORTYPE > external_tensor)
Export the external tensor to the internal tensor returning when complete.
static void TTL_wait(const int num_events, TTL_event *const events)
static TTL_event TTL_get_event()
Return an empty event of type TTL_event.
static void TTL_export_base(const TTL_tensor< INT_TENSORTYPE > internal_tensor, const TTL_tensor< EXT_TENSORTYPE > external_tensor, TTL_event *const event)
Begin the asynchronous export of the external tensor to the internal tensor.
void TTL_import_base(const TTL_tensor< INT_TENSORTYPE > &internal_tensor, const TTL_tensor< EXT_TENSORTYPE > &external_tensor, TTL_event *const event)
TTL_import.
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.
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.
A poor mans base class for an a tensor in the passed address space.