From 103fafe08e6997828886c4c961ebb0e37f7f7a9f Mon Sep 17 00:00:00 2001 From: arghdos <arghdos@gmail.com> Date: Fri, 9 Dec 2016 13:21:29 -0500 Subject: [PATCH] add scope import to fix test --- test/test_loopy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_loopy.py b/test/test_loopy.py index 5a7c28cac..0eeaba536 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1937,12 +1937,14 @@ def test_integer_reduction(): ctx = ctx_factory() queue = cl.CommandQueue(ctx) + from loopy.kernel.data import temp_var_scope as scopes + n = 200 for vtype in [np.int32, np.int64]: var_int = np.random.randint(1000, size=n, dtype=vtype) var_lp = lp.TemporaryVariable('var', initializer=var_int, - scope=scopes.PRIVATE, read_only=True, + scopes=scopes.PRIVATE, dtype=vtype, shape=lp.auto) -- GitLab