From 10f3d7b3c1b1ffe8685f90e59799342b66c72f78 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Sun, 8 Dec 2019 12:27:03 -0600 Subject: [PATCH] better acm failure message --- loopy/check.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loopy/check.py b/loopy/check.py index 81b384a38..cc87ad987 100644 --- a/loopy/check.py +++ b/loopy/check.py @@ -362,8 +362,9 @@ class _AccessCheckMapper(WalkMapper): if not access_range.is_subset(shape_domain): raise LoopyError("'%s' in instruction '%s' " - "accesses out-of-bounds array element" - % (expr, self.insn_id)) + "accesses out-of-bounds array element (could not" + " establish '%s' is a subset of '%s')." + % (expr, self.insn_id, access_range, shape_domain)) def check_bounds(kernel): -- GitLab