From ec2a4c6f533468f3929e52d7b53a8fe7e319bc9c Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 11 Dec 2012 23:41:43 -0500 Subject: [PATCH] Fix test_mem_pool_with_arrays. --- test/test_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_array.py b/test/test_array.py index 57ded681..1f797539 100644 --- a/test/test_array.py +++ b/test/test_array.py @@ -1171,7 +1171,7 @@ def test_nan_arithmetic(ctx_factory): def test_mem_pool_with_arrays(ctx_factory): context = ctx_factory() queue = cl.CommandQueue(context) - mem_pool = cl_tools.MemoryPool(cl_tools.CLAllocator(context)) + mem_pool = cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)) a_dev = cl_array.arange(queue, 2000, dtype=np.float32, allocator=mem_pool) b_dev = cl_array.to_device(queue, np.arange(2000), allocator=mem_pool) + 4000 -- GitLab