Tensor Tiling Library
 
Loading...
Searching...
No Matches
TTL_import_export.h File Reference

Go to the source code of this file.

Functions

static __local void * TTL_local_memset (__local void *const ptr, char value, size_t num)
 Fill block of local memory.
 
static void TTL_clear_void_space (__local void *const dst, const size_t x_offset, const size_t y_offset, size_t num_bytes_per_element, size_t num_elements_per_line, size_t dst_total_line_length, size_t num_lines, size_t total_lines, size_t num_planes)
 Clear any unpopulated space in the target area.
 
static TTL_shape_t TTL_import_pre_fill (const TTL_int_sub_tensor_t internal_sub_tensor, const TTL_const_ext_tensor_t const_external_tensor, __local void **const dst_address, __global void **const src_address)
 

Function Documentation

◆ TTL_clear_void_space()

static void TTL_clear_void_space ( __local void *const dst,
const size_t x_offset,
const size_t y_offset,
size_t num_bytes_per_element,
size_t num_elements_per_line,
size_t dst_total_line_length,
size_t num_lines,
size_t total_lines,
size_t num_planes )
inlinestatic

Clear any unpopulated space in the target area.

Parameters
dst
x_offset
y_offset
num_bytes_per_element
num_elements_per_line
dst_total_line_length
num_lines
total_lines
num_planes

Definition at line 54 of file TTL_import_export.h.

◆ TTL_import_pre_fill()

static TTL_shape_t TTL_import_pre_fill ( const TTL_int_sub_tensor_t internal_sub_tensor,
const TTL_const_ext_tensor_t const_external_tensor,
__local void **const dst_address,
__global void **const src_address )
inlinestatic

Definition at line 77 of file TTL_import_export.h.

◆ TTL_local_memset()

static __local void * TTL_local_memset ( __local void *const ptr,
char value,
size_t num )
inlinestatic

Fill block of local memory.

Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).

Parameters
ptrPointer to the block of memory to fill.
valueValue to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
numNumber of bytes to be set to the value.
Returns
ptr is to the output is returned.

Definition at line 32 of file TTL_import_export.h.