diff --git a/doc/tools.rst b/doc/tools.rst index e85b4e9a39ac8dca6be4b8a4a6831ab49bf8852c..9c647b1992c6337cc58d73ec24d13e4ecb6a18af 100644 --- a/doc/tools.rst +++ b/doc/tools.rst @@ -26,7 +26,7 @@ the available memory. Using :class:`pyopencl.array.Array` instances with a :class:`MemoryPool` is not complicated:: - mem_pool = cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)) + mem_pool = pyopencl.tools.MemoryPool(pyopencl.tools.ImmediateAllocator(queue)) a_dev = cl_array.arange(queue, 2000, dtype=np.float32, allocator=mem_pool) .. class:: PooledBuffer