Skip to content
Snippets Groups Projects
Commit a0a25c43 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Remove useless check for mod 0

size is an expression so the result would be just some other expression.
parent 5f333950
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ def add_vector_view(knl, tmpname, pad_to=None):
size = prim.FloorDiv(prim.Product(temp.shape), vecsize)
# Maybe do some padding.
if pad_to and size % pad_to != 0:
if pad_to:
size = (size // pad_to + 1) * pad_to
# Now add a vector view temporary
......
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