Tensor Tiling Library
 
Loading...
Searching...
No Matches
TTL_import_export.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static TTL_event_t TTL_get_event ()
 Return an empty event of type TTL_event_t.
 
static void TTL_wait (const int num_events, TTL_event_t *const events)
 
static void TTL_import_base (const TTL_int_tensor_t internal_tensor, const TTL_const_ext_tensor_t external_tensor, TTL_event_t *event)
 TTL_import.
 
static void TTL_blocking_import_base (const TTL_int_tensor_t internal_tensor, const TTL_const_ext_tensor_t external_tensor)
 Export the external tensor to the internal tensor returning when complete.
 
static void TTL_export_base (const TTL_const_int_tensor_t internal_tensor, const TTL_ext_tensor_t external_tensor, TTL_event_t *const event)
 Begin the asynchronous export of the external tensor to the internal tensor.
 
static void TTL_blocking_export_base (const TTL_const_int_tensor_t internal_tensor, const TTL_ext_tensor_t external_tensor)
 Export the external tensor to the internal tensor returning when complete.
 

Function Documentation

◆ TTL_blocking_export_base()

static void TTL_blocking_export_base ( const TTL_const_int_tensor_t internal_tensor,
const TTL_ext_tensor_t external_tensor )
inlinestatic

Export the external tensor to the internal tensor returning when complete.

Parameters
internal_tensorA TTL_int_tensor_t describing the internal tile.
external_tensorA TTL_int_sub_tensor_t describing the external tile.

Complete description of what not how here.

Definition at line 121 of file opencl/TTL_import_export.h.

◆ TTL_blocking_import_base()

static void TTL_blocking_import_base ( const TTL_int_tensor_t internal_tensor,
const TTL_const_ext_tensor_t external_tensor )
inlinestatic

Export the external tensor to the internal tensor returning when complete.

Parameters
internal_tensorA TTL_int_tensor_t describing the internal tensor.
external_tensorA TTL_int_tensor_t describing the external tensor. Complete description of what not how here.

Definition at line 79 of file opencl/TTL_import_export.h.

◆ TTL_export_base()

static void TTL_export_base ( const TTL_const_int_tensor_t internal_tensor,
const TTL_ext_tensor_t external_tensor,
TTL_event_t *const event )
inlinestatic

Begin the asynchronous export of the external tensor to the internal tensor.

Parameters
internal_tensorinternal_tensor A TTL_int_tensor_t describing the internal tile.
external_tensorexternal_tensor A TTL_int_sub_tensor_t describing the external tile.
eventevent_ptr A pointer to the event which describe the transfer.
Note
async_work_group_copy_3D3D is not supported by all OpenCL drivers including some V3.0 drivers. To resolve this define TTL_COPY_3D

Definition at line 96 of file opencl/TTL_import_export.h.

◆ TTL_get_event()

static TTL_event_t TTL_get_event ( )
inlinestatic

Return an empty event of type TTL_event_t.

See also
TTL_event_t for information about how event_t and TTL_event_t relate
Returns
The return value allows an empty event to be passed to APIs that require an event and return/update the value with a new event value.

Definition at line 32 of file opencl/TTL_import_export.h.

◆ TTL_import_base()

static void TTL_import_base ( const TTL_int_tensor_t internal_tensor,
const TTL_const_ext_tensor_t external_tensor,
TTL_event_t * event )
inlinestatic

TTL_import.

Begin the asynchronous import of the external tensor to the internal tensor

Parameters
internal_tensorinternal_tensor A TTL_int_tensor_t describing the internal tensor.
external_tensorexternal_tensor A TTL_int_tensor_t describing the external tensor.
eventevent_ptr A pointer to the event which describe the transfer.

Definition at line 54 of file opencl/TTL_import_export.h.

◆ TTL_wait()

static void TTL_wait ( const int num_events,
TTL_event_t *const events )
inlinestatic

Definition at line 41 of file opencl/TTL_import_export.h.