Tensor Tiling Library
 
Loading...
Searching...
No Matches
TTL_import_export.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "../opencl/TTL_import_export.h"
Include dependency graph for c/TTL_import_export.h:

Go to the source code of this file.

Typedefs

typedef event_t TTL_event_t
 TTL_event_t is a pseudonym for OpenCL event_t.
 

Functions

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)
 

Typedef Documentation

◆ TTL_event_t

TTL_event_t is a pseudonym for OpenCL event_t.

To allow full compatibility with OpenCL but allow other implementations to use TTL_event_t in a way that is more applicable to their platforms we used TTL_event_t. For OpenCL TTL_event_t is event_t.

Definition at line 33 of file c/TTL_import_export.h.

Function Documentation

◆ async_work_group_copy_3D3D()

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 )
inlinestatic

Definition at line 52 of file c/TTL_import_export.h.

◆ wait_group_events()

static void wait_group_events ( int num_events,
event_t * event_list )
inlinestatic

Wait for events that identify the async_work_group_copy operations to complete.

Parameters
num_eventsNumber of events to wait for (size of event_list)
event_listA pointer to a list of events.

Not supported in the 'C' version.

See also
OpenCL's wait_group_events() builtin for more information.

Definition at line 46 of file c/TTL_import_export.h.