From f93bdb9ef7809b2b576aef356ccecfaa0f796855 Mon Sep 17 00:00:00 2001 From: Matt Wala <wala1@illinois.edu> Date: Wed, 16 Nov 2016 12:09:00 -0600 Subject: [PATCH] Fix spacing. --- doc/tutorial.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/tutorial.rst b/doc/tutorial.rst index e9e06769c..a5a73c8d3 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -561,11 +561,11 @@ relation to loop nesting. For example, it's perfectly possible to request >>> knl = lp.set_options(knl, "write_cl") >>> evt, (out,) = knl(queue, a=x_vec_dev) #define lid(N) ((int) get_local_id(N)) - ... - for (int i_inner = 0; i_inner <= (-17 + n >= 0 ? 15 : -1 + n); ++i_inner) - for (int i_outer = 0; i_outer <= -1 + -1 * i_inner + ((15 + n + 15 * i_inner) / 16); ++i_outer) - a[16 * i_outer + i_inner] = 0.0f; - ... + ... + for (int i_inner = 0; i_inner <= (-17 + n >= 0 ? 15 : -1 + n); ++i_inner) + for (int i_outer = 0; i_outer <= -1 + -1 * i_inner + ((15 + n + 15 * i_inner) / 16); ++i_outer) + a[16 * i_outer + i_inner] = 0.0f; + ... Notice how loopy has automatically generated guard conditionals to make sure the bounds on the old iname are obeyed. -- GitLab