From 14779bafb04c503fb616ae314893c86ed38219ef Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 5 Mar 2013 13:00:38 -0500 Subject: [PATCH] Add test for double summation. --- test/test_loopy.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/test/test_loopy.py b/test/test_loopy.py index 15328ece6..c9648a46e 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -910,6 +910,38 @@ def test_domain_dependency_via_existentially_quantified_variable(ctx_factory): +def test_double_sum(ctx_factory): + dtype = np.float32 + ctx = ctx_factory() + queue = cl.CommandQueue(ctx) + + n = 20 + + knl = lp.make_kernel(ctx.devices[0], [ + "{[i,j]: 0<=i,j