diff --git a/loopy/preprocess.py b/loopy/preprocess.py index fec2f3e80778906d6bac64cbfc6479beaa39daf4..59ac1fc05d366a776ee8dd62504a14e62039403d 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -141,7 +141,7 @@ def realize_reduction(kernel): from pymbolic import var - target_var_name = kernel.make_unique_var_name("acc", + target_var_name = kernel.make_unique_var_name("acc_"+"_".join(expr.inames), extra_used_vars=set(new_temporary_variables)) target_var = var(target_var_name) diff --git a/test/test_fem_assembly.py b/test/test_fem_assembly.py index bae8fcdca573d295c95aa987df14be910182bf70..136fccfbc8165235d40669c31c4de1844cff3fc9 100644 --- a/test/test_fem_assembly.py +++ b/test/test_fem_assembly.py @@ -26,88 +26,6 @@ def test_laplacian_stiffness(ctx_factory): from pymbolic import var Nc_sym = var("Nc") - knl = lp.make_kernel(ctx.devices[0], - "[Nc] -> {[K,i,j,q, ax_a, ax_b, ax_c]: 0<=K {[K,i,j,q, ax_a, ax_b]: 0<=K