Tiling 1D Implementation API¶
-
group
aml_tiling_1d
1 dimension tiling implementation.
Implementation of 1D tilings.
Defines
-
AML_TILING_1D_DECL
(name)¶ Static declaration of 1D tiling
-
AML_TILING_ITERATOR_1D_DECL
(name)¶ Static declaration of 1D tiling iterator
-
AML_TILING_1D_ALLOCSIZE
¶ Static declaration of the size of a 1D tiling
-
AML_TILING_ITERATOR_1D_ALLOCSIZE
¶ Static declaration of the size of a 1D tiling iterator
Functions
-
int
aml_tiling_1d_create
(struct aml_tiling **tiling, size_t tilesize, size_t totalsize)¶ Allocates and initializes a new 1D tiling.
- Return
0 if successful; an error code otherwise.
- Parameters
tiling
: an address where the pointer to the newly allocated tiling structure will be stored.tilesize
: provides the size of each tile.totalsize
: provides the size of the complete user data structure to be tiled.
-
int
aml_tiling_1d_init
(struct aml_tiling *tiling, size_t tilesize, size_t totalsize)¶ Initializes a tiling. Similar to create.
- Parameters
tiling
: a tiling declared with AML_TILING_1D_DECL.0
: if successful; an error code otherwise.
-
void
aml_tiling_1d_fini
(struct aml_tiling *tiling)¶ Finalize a tiling.
-
void
aml_tiling_1d_destroy
(struct aml_tiling **tiling)¶ Tears down an initialized tiling.
- Parameters
tiling
: a tiling created with aml_tiling_1d_create. NULL after return.
Variables
-
struct aml_tiling_ops
aml_tiling_1d_ops
¶ Initialized structure containing operations on 1D tiling.
-
struct aml_tiling_iterator_ops
aml_tiling_iterator_1d_ops
¶ Initialized structure containing operations on 1D tiling.
-
struct
aml_tiling_1d_data
¶ - #include <1d.h>
Data of 1 dimension tiling. 1D tiling consists in a set of contiguous data blocks.
-
struct
aml_tiling_iterator_1d_data
¶ - #include <1d.h>
Data of 1 dimension tiling iterator.
-