Skip to content
Snippets Groups Projects
Commit 04cd0ac6 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Generate the shapes of ILP accumulators in the correct type.

parent 7690a127
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,6 @@ Things to consider
To-do
^^^^^
- Automatically generate testing code vs. sequential.
- Fix all tests
- Deal with equality constraints.
......@@ -83,6 +81,8 @@ Future ideas
Dealt with
^^^^^^^^^^
- Automatically generate testing code vs. sequential.
- If isl can prove that all operands are positive, may use '/' instead of
'floor_div'.
......
......@@ -99,8 +99,10 @@ def realize_reduction(kernel):
for iname in ilp_inames:
bounds = kernel.get_iname_bounds(iname)
from loopy.symbolic import pw_aff_to_expr
ilp_iname_lengths.append(
static_max_of_pw_aff(bounds.size, constants_only=True))
int(pw_aff_to_expr(
static_max_of_pw_aff(bounds.size, constants_only=True))))
# }}}
......
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