From c3950ff5c8fce47f208ffe59374222a66a80b64d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 18 Apr 2016 11:31:20 -0500 Subject: [PATCH] Tweak C instruction test to test the issue from #21 --- test/test_loopy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_loopy.py b/test/test_loopy.py index 6ff77080f..cebbda4d9 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1379,15 +1379,15 @@ def test_c_instruction(ctx_factory): knl = lp.make_kernel( "{[i,j]: 0<=i,j<n }", [ - lp.CInstruction("i", """ - x = sin((float) i); + lp.CInstruction("i,j", """ + x = sin((float) i*j); """, assignees="x"), - "a[i*i] = x", + "a[i,j] = x", ], [ - lp.GlobalArg("a", shape="n"), - lp.ValueArg("n"), + lp.GlobalArg("a", shape=lp.auto, dtype=np.float32), lp.TemporaryVariable("x", np.float32), + "...", ], assumptions="n>=1") -- GitLab