diff --git a/gpucuda/indexing.py b/gpucuda/indexing.py index 979083c7e31d7e1250ed76664f8f90dc26c4a225..85de69860ac4d1a492371318ede7700c140b8941 100644 --- a/gpucuda/indexing.py +++ b/gpucuda/indexing.py @@ -108,7 +108,7 @@ class BlockIndexing(AbstractIndexing): extend_bs = (1,) * (3 - len(self._block_size)) block_size = self._block_size + extend_bs if not self._compile_time_block_size: - block_size = [sp.Min(bs, shape) for bs, shape in zip(block_size, widths)] + block_size = tuple(sp.Min(bs, shape) for bs, shape in zip(block_size, widths)) + extend_bs grid = tuple(div_ceil(length, block_size) for length, block_size in zip(widths, block_size))