From c4a232e01b86dbad21a30fc24c10726f3f361684 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 22 Jun 2015 01:45:52 -0500
Subject: [PATCH] Doctest determinism

---
 doc/tutorial.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index 995af8f87..3180b5066 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -923,7 +923,7 @@ Consider the following example:
     ...     "{ [i_outer,i_inner, k]:  "
     ...          "0<= 16*i_outer + i_inner <n and 0<= i_inner,k <16}",
     ...     """
-    ...     <> a_temp[i_inner] = a[16*i_outer + i_inner]
+    ...     <> a_temp[i_inner] = a[16*i_outer + i_inner] {priority=10}
     ...     out[16*i_outer + i_inner] = sum(k, a_temp[k])
     ...     """)
     >>> knl = lp.tag_inames(knl, dict(i_outer="g.0", i_inner="l.0"))
@@ -954,6 +954,9 @@ it is written in parallel across values of the group-local iname
 *i_inner*. In addition, :mod:`loopy` has emitted a barrier instruction to
 achieve the :ref:`ordering` specified by the instruction dependencies.
 
+(The ``priority=10`` attribute was added to make the output of the test
+deterministic.)
+
 .. note::
 
     It is worth noting that it was not necessary to provide a size for the
-- 
GitLab