Skip to content
Snippets Groups Projects
Commit 88799f8d authored by James Stevens's avatar James Stevens
Browse files

fixed missing spaces in tutorial

parent 47f55a38
No related branches found
No related tags found
No related merge requests found
......@@ -558,10 +558,10 @@ relation to loop nesting. For example, it's perfectly possible to request
>>> evt, (out,) = knl(queue, a=x_vec_dev)
#define lid(N) ((int) get_local_id(N))
...
for (int i_inner = 0; i_inner <= 15; ++i_inner)
if (-1 + -1 * i_inner + n >= 0)
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 <= 15; ++i_inner)
if (-1 + -1 * i_inner + n >= 0)
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
......
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