From c98820b8a2006285203a674dec5033da812ecf61 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Fri, 12 Jan 2018 17:33:10 -0600 Subject: [PATCH] Made doc changes to explain the behavior of temps in `to_bathced` better --- loopy/transform/batch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/loopy/transform/batch.py b/loopy/transform/batch.py index d02c0fc35..7e6b03581 100644 --- a/loopy/transform/batch.py +++ b/loopy/transform/batch.py @@ -106,9 +106,10 @@ def to_batched(knl, nbatches, batch_varying_args, batch_iname_prefix="ibatch", sequential=False): """Takes in a kernel that carries out an operation and returns a kernel that carries out a batch of these operations. - ***Note:* For temporaries in a kernel that are private or read only - globals, loopy does not does not batch these variables if not mentioned - explicitly in `batch_varying_args`. + .. note:: + For temporaries in a kernel that are private or read only + globals and if `sequential=True`, loopy does not does not batch these + variables unless explicitly mentioned in `batch_varying_args`. :arg nbatches: the number of batches. May be a constant non-negative integer or a string, which will be added as an integer argument. -- GitLab