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

Go to the source code of this file.

Functions

static TTL_event TTL_get_event ()
 Return an empty event of type TTL_event.
 
static void TTL_wait (const int num_events, TTL_event *const events)
 
template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
void TTL_import_base (const TTL_tensor< INT_TENSORTYPE > &internal_tensor, const TTL_tensor< EXT_TENSORTYPE > &external_tensor, TTL_event *const event)
 TTL_import.
 
template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
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.
 
template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
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.
 
template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
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.
 

Function Documentation

◆ TTL_blocking_export_base()

template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
static void TTL_blocking_export_base ( const TTL_tensor< INT_TENSORTYPE > internal_tensor,
const TTL_tensor< EXT_TENSORTYPE > external_tensor )
inlinestatic

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

Parameters
internal_tensorA TTL_tensor describing the internal tile.
external_tensorA TTL_tensor describing the external tile.

Complete description of what not how here.

Definition at line 137 of file TTL_cpp/opencl/TTL_import_export.h.

◆ TTL_blocking_import_base()

template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
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.

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

Definition at line 91 of file TTL_cpp/opencl/TTL_import_export.h.

◆ TTL_export_base()

template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
static void TTL_export_base ( const TTL_tensor< INT_TENSORTYPE > internal_tensor,
const TTL_tensor< EXT_TENSORTYPE > external_tensor,
TTL_event *const event )
inlinestatic

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

Parameters
internal_tensorinternal_tensor A TTL_tensor describing the internal tile.
external_tensorexternal_tensor A TTL_tensor 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 109 of file TTL_cpp/opencl/TTL_import_export.h.

◆ TTL_get_event()

static TTL_event TTL_get_event ( )
inlinestatic

Return an empty event of type TTL_event.

See also
TTL_event for information about how event and TTL_event 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 39 of file TTL_cpp/opencl/TTL_import_export.h.

◆ TTL_import_base()

template<typename INT_TENSORTYPE, typename EXT_TENSORTYPE>
void TTL_import_base ( const TTL_tensor< INT_TENSORTYPE > & internal_tensor,
const TTL_tensor< EXT_TENSORTYPE > & external_tensor,
TTL_event *const event )

TTL_import.

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

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

Definition at line 64 of file TTL_cpp/opencl/TTL_import_export.h.

◆ TTL_wait()

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

Definition at line 48 of file TTL_cpp/opencl/TTL_import_export.h.