Skip to content
Snippets Groups Projects
Commit 861b5c14 authored by tj-sun's avatar tj-sun
Browse files

add docstring for alignment

parent ee89b0f0
No related branches found
No related tags found
1 merge request!215Add alignment attribute to ArrayBase
Pipeline #
...@@ -608,6 +608,12 @@ class ArrayBase(ImmutableRecord): ...@@ -608,6 +608,12 @@ class ArrayBase(ImmutableRecord):
to generate more informative names than could be achieved by to generate more informative names than could be achieved by
axis numbers. axis numbers.
.. attribute:: alignment
Memory alignment of the array in bytes.
Default to *None*. If an integer N is given, the array would be declared
with ``__attribute__((aligned(N)))`` in code generation for :class:`loopy.CTarget`.
.. automethod:: __init__ .. automethod:: __init__
.. automethod:: __eq__ .. automethod:: __eq__
.. automethod:: num_user_axes .. automethod:: num_user_axes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment