Skip to content

Commit

Permalink
Add TODO comment about stencils with unequal rows
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmeding committed Jan 13, 2025
1 parent e760db2 commit 85db032
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Data/Array/Accelerate/Smart.hs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,10 @@ type instance StencilR Sugar.DIM1 (Exp e, Exp e, Exp e, Exp e, Exp e, Exp e, Exp
= EltR (e, e, e, e, e, e, e, e, e)

-- DIM(n+1)
-- TODO: These instances allow stencils with unequal sub-stencil sizes (i.e.
-- unequal row lengths for a 2D stencil). This is rather odd, probably unused,
-- and makes type inference a little less eager to deduce the stencil type in
-- case of underspecified rows. Can we just require the rows to be equal?
instance (Stencil (sh:.Int) a row2,
Stencil (sh:.Int) a row1,
Stencil (sh:.Int) a row0,
Expand Down

0 comments on commit 85db032

Please sign in to comment.