Skip to content
Snippets Groups Projects
Commit e03ce30c authored by Tim Warburton's avatar Tim Warburton
Browse files

Make sure TemporaryVariable.nbytes computes an int.

parent 7ef26e17
No related branches found
No related tags found
No related merge requests found
...@@ -203,7 +203,8 @@ class TemporaryVariable(Record): ...@@ -203,7 +203,8 @@ class TemporaryVariable(Record):
@property @property
def nbytes(self): def nbytes(self):
from pytools import product from pytools import product
return product(self.shape)*self.dtype.itemsize from loopy.symbolic import pw_aff_to_expr
return product(pw_aff_to_expr(si) for si in self.shape)*self.dtype.itemsize
# }}} # }}}
......
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