From f03f874db9b08a6bef9bfc73dd5090a247b4df9c Mon Sep 17 00:00:00 2001 From: arghdos Date: Fri, 9 Dec 2016 13:14:51 -0500 Subject: [PATCH] correct test context --- test/test_loopy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_loopy.py b/test/test_loopy.py index 579215092..5a7c28cac 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1934,6 +1934,9 @@ def test_unscheduled_insn_detection(): def test_integer_reduction(): + ctx = ctx_factory() + queue = cl.CommandQueue(ctx) + n = 200 for vtype in [np.int32, np.int64]: var_int = np.random.randint(1000, size=n, dtype=vtype) -- GitLab