diff --git a/doc/tutorial.rst b/doc/tutorial.rst index af8c8281cf7f5b7bbf0f00a0841a15c5f05f14dd..3f2cbf5bf2fc9157e40718595cb0e95fed5fbb9a 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -25,7 +25,7 @@ import a few modules and set up a :class:`pyopencl.Context` and a >>> import loopy as lp >>> lp.set_caching_enabled(False) - >>> from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1 + >>> from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2 >>> from warnings import filterwarnings, catch_warnings >>> filterwarnings('error', category=lp.LoopyWarning) diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py index bd21a5f39cc6e761be582dba2fc3ad047b9260ea..cd7c4fb224835ddc777a54fdbd9007ff80cc25a5 100644 --- a/loopy/kernel/creation.py +++ b/loopy/kernel/creation.py @@ -2030,6 +2030,8 @@ def make_kernel(domains, instructions, kernel_data=["..."], **kwargs): if lang_version >= (2018, 1): options = options.copy(enforce_variable_access_ordered=True) + if lang_version >= (2018, 2): + options = options.copy(ignore_boostable_into=True) if isinstance(silenced_warnings, str): silenced_warnings = silenced_warnings.split(";") diff --git a/loopy/version.py b/loopy/version.py index 2f29e806edd571fc2fc59f603337eefdfc1b2dd4..c731a1b1d17922ce8c36d6c142e44a5182aa591a 100644 --- a/loopy/version.py +++ b/loopy/version.py @@ -56,12 +56,14 @@ DATA_MODEL_VERSION = "%s-islpy%s-%s-v0" % (VERSION_TEXT, _islpy_version, _git_re FALLBACK_LANGUAGE_VERSION = (2017, 2, 1) -MOST_RECENT_LANGUAGE_VERSION = (2018, 1) +MOST_RECENT_LANGUAGE_VERSION = (2018, 2) +LOOPY_USE_LANGUAGE_VERSION_2018_2 = (2018, 2) LOOPY_USE_LANGUAGE_VERSION_2018_1 = (2018, 1) LOOPY_USE_LANGUAGE_VERSION_2017_2_1 = (2017, 2, 1) LANGUAGE_VERSION_SYMBOLS = [ + "LOOPY_USE_LANGUAGE_VERSION_2018_2", "LOOPY_USE_LANGUAGE_VERSION_2018_1", "LOOPY_USE_LANGUAGE_VERSION_2017_2_1", ] @@ -116,6 +118,10 @@ will work hard to avoid backward-incompatible language changes.) History of Language Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. data:: LOOPY_USE_LANGUAGE_VERSION_2018_2 + + :attr:`loopy.Options.ignore_boostable_into` is turned on by default. + .. data:: LOOPY_USE_LANGUAGE_VERSION_2018_1 :attr:`loopy.Options.enforce_variable_access_ordered` diff --git a/test/test_statistics.py b/test/test_statistics.py index e42c43f60179321114fb695978cc1c91f182e8ee..51319bdcf6e9a61850298608b0e373632870940b 100644 --- a/test/test_statistics.py +++ b/test/test_statistics.py @@ -36,7 +36,7 @@ from loopy.statistics import CountGranularity as CG from pymbolic.primitives import Variable -from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1 # noqa +from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2 # noqa def test_op_counter_basic():