Skip to content
Snippets Groups Projects
Commit 530e4275 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add note about persistency of set_scalar_arg_dtypes() to docs.

parent 0cc45fed
No related branches found
No related tags found
No related merge requests found
......@@ -707,7 +707,7 @@ Programs and Kernels
Returns a list of all :class:`Kernel` objects in the :class:`Program`.
.. function:: unload_compiler()
.. class:: Kernel(program, name)
......@@ -770,6 +770,18 @@ Programs and Kernels
most suitable number types will automatically be
cast to the right type for kernel invocation.
.. note ::
The information set by this rountine is attached to a single kernel
instance. A new kernel instance is created every time you use
`program.kernel` attribute access. The following will therefore not
work::
prg = cl.Program(...).build()
prg.kernel.set_scalar_arg_dtypes(...)
prg.kernel(queue, n_globals, None, args)
.. method:: __call__(queue, global_size, local_size, *args, global_offset=None, wait_for=None)
Use :func:`enqueue_nd_range_kernel` to enqueue a kernel execution, after using
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment