From 21e44452bcb343445187e2399224d0e22f0eff03 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 16 Apr 2018 19:09:36 -0500
Subject: [PATCH] Bump language version used throughout tests and examples to
 2018.2

---
 examples/python/hello-loopy.py | 2 +-
 loopy/kernel/creation.py       | 2 +-
 loopy/version.py               | 2 +-
 test/test_apps.py              | 2 +-
 test/test_c_execution.py       | 2 +-
 test/test_dg.py                | 2 +-
 test/test_diff.py              | 2 +-
 test/test_domain.py            | 2 +-
 test/test_linalg.py            | 2 +-
 test/test_loopy.py             | 2 +-
 test/test_misc.py              | 2 +-
 test/test_nbody.py             | 2 +-
 test/test_numa_diff.py         | 2 +-
 test/test_reduction.py         | 2 +-
 test/test_scan.py              | 2 +-
 test/test_sem_reagan.py        | 2 +-
 test/test_target.py            | 2 +-
 test/test_transform.py         | 2 +-
 18 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/examples/python/hello-loopy.py b/examples/python/hello-loopy.py
index 6fa9b5fd3..9098c5444 100644
--- a/examples/python/hello-loopy.py
+++ b/examples/python/hello-loopy.py
@@ -2,7 +2,7 @@ import numpy as np
 import loopy as lp
 import pyopencl as cl
 import pyopencl.array
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2
 
 # setup
 # -----
diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py
index cd7c4fb22..583f7e7bf 100644
--- a/loopy/kernel/creation.py
+++ b/loopy/kernel/creation.py
@@ -1925,7 +1925,7 @@ def make_kernel(domains, instructions, kernel_data=["..."], **kwargs):
         To set the kernel version for all :mod:`loopy` kernels in a (Python) source
         file, you may simply say::
 
-            from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1
+            from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2
 
         If *lang_version* is not explicitly given, that version value will be used.
 
diff --git a/loopy/version.py b/loopy/version.py
index c731a1b1d..2f5006be3 100644
--- a/loopy/version.py
+++ b/loopy/version.py
@@ -97,7 +97,7 @@ will (indefinitely) default to language version 2017.2.1.  If passing a
 language version to :func:`make_kernel` is impractical, you may also import
 one of the ``LOOPY_USE_LANGUAGE_VERSION_...`` symbols given below using::
 
-    from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1
+    from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2
 
 in the global namespace of the function calling :func:`make_kernel`. If
 *lang_version* in that call is not explicitly given, this value will be used.
diff --git a/test/test_apps.py b/test/test_apps.py
index 279ea4d4a..ee3d4ff44 100644
--- a/test/test_apps.py
+++ b/test/test_apps.py
@@ -49,7 +49,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa: F401
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa: F401
 
 
 # {{{ convolutions
diff --git a/test/test_c_execution.py b/test/test_c_execution.py
index 01a2cb94f..c355893e4 100644
--- a/test/test_c_execution.py
+++ b/test/test_c_execution.py
@@ -40,7 +40,7 @@ else:
     faulthandler.enable()
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_c_target():
diff --git a/test/test_dg.py b/test/test_dg.py
index c8623f78d..8de742f27 100644
--- a/test/test_dg.py
+++ b/test/test_dg.py
@@ -34,7 +34,7 @@ from pyopencl.tools import (  # noqa
         pytest_generate_tests_for_pyopencl as pytest_generate_tests)
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_dg_volume(ctx_factory):
diff --git a/test/test_diff.py b/test/test_diff.py
index 054d81f52..b735ab17a 100644
--- a/test/test_diff.py
+++ b/test/test_diff.py
@@ -48,7 +48,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_diff(ctx_factory):
diff --git a/test/test_domain.py b/test/test_domain.py
index 20614d510..ebfde8509 100644
--- a/test/test_domain.py
+++ b/test/test_domain.py
@@ -52,7 +52,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_assume(ctx_factory):
diff --git a/test/test_linalg.py b/test/test_linalg.py
index 7db6c390f..093fcbf24 100644
--- a/test/test_linalg.py
+++ b/test/test_linalg.py
@@ -62,7 +62,7 @@ def check_float4(result, ref_result):
                 ref_result[comp], result[comp], rtol=1e-3, atol=1e-3), None
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_axpy(ctx_factory):
diff --git a/test/test_loopy.py b/test/test_loopy.py
index ef1f491d2..7a6b8c8a6 100644
--- a/test/test_loopy.py
+++ b/test/test_loopy.py
@@ -52,7 +52,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_globals_decl_once_with_multi_subprogram(ctx_factory):
diff --git a/test/test_misc.py b/test/test_misc.py
index c67c66405..05df0317a 100644
--- a/test/test_misc.py
+++ b/test/test_misc.py
@@ -32,7 +32,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_compute_sccs():
diff --git a/test/test_nbody.py b/test/test_nbody.py
index d1a708f72..5b36ed416 100644
--- a/test/test_nbody.py
+++ b/test/test_nbody.py
@@ -34,7 +34,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_nbody(ctx_factory):
diff --git a/test/test_numa_diff.py b/test/test_numa_diff.py
index 7479b849b..be07b6c31 100644
--- a/test/test_numa_diff.py
+++ b/test/test_numa_diff.py
@@ -44,7 +44,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 @pytest.mark.parametrize("Nq", [7])
diff --git a/test/test_reduction.py b/test/test_reduction.py
index 866ae9f58..81de627d8 100644
--- a/test/test_reduction.py
+++ b/test/test_reduction.py
@@ -49,7 +49,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_nonsense_reduction(ctx_factory):
diff --git a/test/test_scan.py b/test/test_scan.py
index c45afd0d6..505967523 100644
--- a/test/test_scan.py
+++ b/test/test_scan.py
@@ -56,7 +56,7 @@ __all__ = [
 # - scan(a) + scan(b)
 # - test for badly tagged inames
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 @pytest.mark.parametrize("n", [1, 2, 3, 16])
diff --git a/test/test_sem_reagan.py b/test/test_sem_reagan.py
index 450ddeba9..e724a65df 100644
--- a/test/test_sem_reagan.py
+++ b/test/test_sem_reagan.py
@@ -31,7 +31,7 @@ from pyopencl.tools import (  # noqa
         pytest_generate_tests_for_pyopencl as pytest_generate_tests)
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_tim2d(ctx_factory):
diff --git a/test/test_target.py b/test/test_target.py
index 89d72c0ac..eb94bdc81 100644
--- a/test/test_target.py
+++ b/test/test_target.py
@@ -52,7 +52,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_ispc_target(occa_mode=False):
diff --git a/test/test_transform.py b/test/test_transform.py
index 2f98fe34d..210984512 100644
--- a/test/test_transform.py
+++ b/test/test_transform.py
@@ -49,7 +49,7 @@ __all__ = [
         ]
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_chunk_iname(ctx_factory):
-- 
GitLab