From d1556b964a43cb1da2e7e1c077d9f59f206fb30e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 11 Jul 2017 18:58:35 -0500 Subject: [PATCH] Explain/remove no-iname-reduction FIXME [ci skip] --- loopy/preprocess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 69e045e64..ced1aaaa1 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -1730,7 +1730,10 @@ def realize_reduction(kernel, insn_id_filter=None, unknown_types_ok=True, "Empty reduction found (no inames to reduce over). " "Eliminating.") - # FIXME: return a neutral element. + # We're not supposed to reduce/sum at all. (Note how this is distinct + # from an empty reduction--there is an element here, just no inames + # to reduce over. It's rather similar to an array with () shape in + # numpy.) return expr.expr -- GitLab