From 861b5c14f25fbfb003c6940fe82eaebcaf71f138 Mon Sep 17 00:00:00 2001 From: tj-sun <tianjiao.sun.2010@gmail.com> Date: Fri, 26 Jan 2018 11:25:57 +0000 Subject: [PATCH] add docstring for alignment --- loopy/kernel/array.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loopy/kernel/array.py b/loopy/kernel/array.py index df50b4d33..8dbfc24dd 100644 --- a/loopy/kernel/array.py +++ b/loopy/kernel/array.py @@ -608,6 +608,12 @@ class ArrayBase(ImmutableRecord): to generate more informative names than could be achieved by 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:: __eq__ .. automethod:: num_user_axes -- GitLab