diff --git a/doc/source/tools.rst b/doc/source/tools.rst index b63856a7bdcc8279298f64b6784d0ff1729de71d..57200f7ebdfc999a9aca35f361f4b840b263f735 100644 --- a/doc/source/tools.rst +++ b/doc/source/tools.rst @@ -74,8 +74,8 @@ the available memory. This is useful as a cleanup action when a memory pool falls out of use. -Kernel Caching --------------- +Context-based Caching +--------------------- .. function:: context_dependent_memoize(func) @@ -84,6 +84,8 @@ Kernel Caching for caching of kernels. Assumes that the first argument of the decorated function is the :class:`pyopencl.Context`. + .. versionadded:: 2011.2 + .. function:: clear_context_caches() Empties all context-dependent memoization caches. Also releases @@ -91,6 +93,8 @@ Kernel Caching program detaches from its context, you might need to call this function to free all remaining references to your context. + .. versionadded:: 2011.2 + Testing -------