Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
aml
Commits
be3c15f8
Commit
be3c15f8
authored
Feb 06, 2020
by
Swann Perarnau
Browse files
fixes
parent
c1c23619
Pipeline
#9655
passed with stages
in 3 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/tutorials/tiling/tilings.rst
View file @
be3c15f8
...
...
@@ -11,8 +11,8 @@ sizes.
As such, the main function of a tiling is to provide an index into
subcomponents of a layout.
As for the layouts, both the C and Fortran
storage
orders are available for
the
tilings, with similar names: `AML_TILING_ORDER_C` and
As for the layouts, both the C and Fortran
indexing
orders are available for
the
tilings, with similar names: `AML_TILING_ORDER_C` and
`AML_TILING_ORDER_FORTRAN`.
Creating an AML tiling
...
...
@@ -26,9 +26,9 @@ First, you need to have the right headers.
#include <aml/layout/dense.h>
#include "aml/tiling/resize.h"
Let's take the example of a two-dimensional matrix, with `x` rows and `y`
colums.
We need to have already allocated some memory space for our matrix,
for
instance with a AML area.
Let's take the example of a two-dimensional matrix, with `x` rows and `y`
columns.
We need to have already allocated some memory space for our matrix,
for
instance with a AML area.
.. code-block:: c
...
...
@@ -95,7 +95,7 @@ Generic operations on an AML tiling
-----------------------------------
Several operations on an AML tiling are defined in the AML Tiling generic API.
Let's assume here that we have successful created a tilng called `tiling` in
Let's assume here that we have successful created a til
i
ng called `tiling` in
this part.
We can get the number of dimensions of this tiling:
...
...
@@ -134,7 +134,7 @@ The dimensions of each tile in the tiling can be obtained in a array:
size_t tile_dims[ndims];
aml_tiling_tile_dims(tiling, tile_dims);
The resulting array would be `{tile_x, tile_y}` for both `tiling_c` and `tiling_
r
`.
The resulting array would be `{tile_x, tile_y}` for both `tiling_c` and `tiling_
f
`.
Accessing a tile and elements of a tile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
doc/tutorials/tutorials.rst
View file @
be3c15f8
...
...
@@ -12,5 +12,5 @@ to better understand each abstraction.
hello_world/hello_world
area/areas
layouts/layouts
dma/dmas
tiling/tilings
dma/dmas
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment