From 8b29c09a6a02c64552e85f89533319d4670628bb Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 25 Jan 2016 18:40:14 -0600 Subject: [PATCH] Deal with absence of indices in array_buffer_map's in-footprint checking --- loopy/transform/array_buffer_map.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loopy/transform/array_buffer_map.py b/loopy/transform/array_buffer_map.py index 72fca8a4a..38e35a941 100644 --- a/loopy/transform/array_buffer_map.py +++ b/loopy/transform/array_buffer_map.py @@ -373,6 +373,11 @@ class ArrayToBufferMap(object): usage_domain, self.storage_axis_names, self.prime_sweep_inames) + if stor2sweep is None: + # happens if there are no indices + # -> yes, in footprint + return True + if isinstance(stor2sweep, isl.BasicMap): stor2sweep = isl.Map.from_basic_map(stor2sweep) -- GitLab