From c05e070f333dc9a93977d13ea39963619780ae10 Mon Sep 17 00:00:00 2001 From: jdsteve2 <jdsteve2@illinois.edu> Date: Sun, 22 Mar 2020 15:18:33 -0500 Subject: [PATCH] remove unused iname gi from test_tim2d and comment out duplicate_inames calls whose within id doesn't match anything --- test/test_sem_reagan.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_sem_reagan.py b/test/test_sem_reagan.py index e022e92f3..54c64e0a4 100644 --- a/test/test_sem_reagan.py +++ b/test/test_sem_reagan.py @@ -48,7 +48,7 @@ def test_tim2d(ctx_factory): # K - run-time symbolic knl = lp.make_kernel( - "{[i,j,e,m,o,o2,gi]: 0<=i,j,m,o,o2<n and 0<=e<K and 0<=gi<3}", + "{[i,j,e,m,o,o2]: 0<=i,j,m,o,o2<n and 0<=e<K}", [ "ur(a,b) := simul_reduce(sum, o, D[a,o]*u[e,o,b])", "us(a,b) := simul_reduce(sum, o2, D[b,o2]*u[e,a,o2])", @@ -74,8 +74,8 @@ def test_tim2d(ctx_factory): name="semlap2D", assumptions="K>=1") knl = lp.fix_parameters(knl, n=n) - knl = lp.duplicate_inames(knl, "o", within="id:ur") - knl = lp.duplicate_inames(knl, "o", within="id:us") + # knl = lp.duplicate_inames(knl, "o", within="id:ur") + # knl = lp.duplicate_inames(knl, "o", within="id:us") seq_knl = knl @@ -87,6 +87,7 @@ def test_tim2d(ctx_factory): knl = lp.precompute(knl, "ur(m,j)", ["m", "j"], default_tag="l.auto") knl = lp.precompute(knl, "us(i,m)", ["i", "m"], default_tag="l.auto") + # TODO this adds `a` and `b` to domains, which leads to unused inames knl = lp.precompute(knl, "Gux(m,j)", ["m", "j"], default_tag="l.auto") knl = lp.precompute(knl, "Guy(i,m)", ["i", "m"], default_tag="l.auto") -- GitLab