diff --git a/doc/runtime_program.rst b/doc/runtime_program.rst index 469a4a9c..b6702542 100644 --- a/doc/runtime_program.rst +++ b/doc/runtime_program.rst @@ -129,6 +129,14 @@ Program in the same name space and take precedence over :class:`Kernel` names. + .. note:: + + If you need to retrieve a kernel whose name includes non-identifier + characters, retrieving it as an attribute of + :class:`~pyopencl.Program` will + not work, for obvious reasons. In that case, you can use + the :class:`~pyopencl.Kernel` constructor directly. + .. method:: all_kernels() Returns a list of all :class:`Kernel` objects in the :class:`Program`.