Skip to content
Snippets Groups Projects
Commit 103fafe0 authored by Nick Curtis's avatar Nick Curtis
Browse files

add scope import to fix test

parent f03f874d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment