From 0a55895d4f04f28dabf5cd684a9ec9163f36a6ef Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 27 May 2016 10:22:30 -0500 Subject: [PATCH] Some test simplifications --- test/test_linalg.py | 2 +- test/test_loopy.py | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/test/test_linalg.py b/test/test_linalg.py index 0e0b59089..e3cae8557 100644 --- a/test/test_linalg.py +++ b/test/test_linalg.py @@ -604,7 +604,7 @@ def test_small_batched_matvec(ctx_factory): Np = 36 # noqa knl = lp.make_kernel( - "[K] -> {[i,j,k]: 0<=k {[j]: 0<=j<0}" ], - [ - "a[i] = sum(j, j)", - ], - [ - lp.GlobalArg("a", dtype, (20,)), - ]) - cknl = lp.CompiledKernel(ctx, knl) + "a[i] = sum(j, j)", + ) + + knl = lp.realize_reduction(knl) + print(knl) - evt, (a,) = cknl(queue) + knl = lp.set_options(knl, write_cl=True) + evt, (a,) = knl(queue) assert (a.get() == 0).all() -- GitLab