Skip to content

Commit

Permalink
Memory pools doc fix (suggested by Yair Daon)
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed May 6, 2015
1 parent c9d375a commit dcad574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tools.rst
Expand Up @@ -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
Expand Down

0 comments on commit dcad574

Please sign in to comment.