diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py index f3e1eb01dbe4bd78160fc84a789cb8fb51c1abfa..8da34b8807231da48a874d1bfc2df7f11a263ad3 100644 --- a/loopy/kernel/creation.py +++ b/loopy/kernel/creation.py @@ -949,6 +949,19 @@ def make_kernel(device, domains, instructions, kernel_data=["..."], **kwargs): May also contain :class:`TemporaryVariable` instances(which do not give rise to kernel-level arguments). + The string ``"..."`` may be passed as one of the entries + of the list, in which case loopy will infer names, shapes, + and types of arguments from the kernel code. It is + possible to just pass the list ``["..."]``, in which case + all arguments are inferred. + + In Python 3, the string ``"..."`` may be spelled somewhat more sensibly + as just ``...`` (the ellipsis), for the same meaning. + + As an additional option, each argument may be specified as just a name + (a string). This is useful to specify argument ordering. All other + characteristics of the named arguments are inferred. + The following keyword arguments are recognized: :arg preambles: a list of (tag, code) tuples that identify preamble