diff --git a/.gitignore b/.gitignore index 51145585621dc1f447dcc790f760ec7fc9f97496..b47ef0810c77a8dbb5bf5fa423f1b750f1d8115b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ distribute*tar.gz a.out doc/_build +.cache diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3be8173c10a9b7de5e03f6444b3159b16b108407..9aba11c28f28a9114785a41a61e65543a1eda5c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ Python 2.7: - python2.7 except: - tags + Python 3.5: script: - py_version=3.5 @@ -18,6 +19,7 @@ Python 3.5: - python3.5 except: - tags + Python 2.6: script: - py_version=2.6 @@ -28,6 +30,7 @@ Python 2.6: - python2.6 except: - tags + Documentation: script: - EXTRA_INSTALL="numpy" @@ -37,3 +40,12 @@ Documentation: - python3.5 only: - master + +Flake8: + script: + - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh + - ". ./prepare-and-run-flake8.sh dagrt test" + tags: + - python3.5 + except: + - tags diff --git a/dagrt/codegen/expressions.py b/dagrt/codegen/expressions.py index 456633e2d33cca961be6987547d4e7d520d39cb8..e20d4409950e344a54800c965c217174f28b2716 100644 --- a/dagrt/codegen/expressions.py +++ b/dagrt/codegen/expressions.py @@ -27,7 +27,6 @@ THE SOFTWARE. """ - # {{{ fortran class FortranExpressionMapper(StringifyMapper): diff --git a/dagrt/codegen/fortran.py b/dagrt/codegen/fortran.py index e8f6e857e8d745fb5ae87b300d3747f30a73096c..7a7875a7c919c5d7c7c217a9a5790a98f3a07a8e 100644 --- a/dagrt/codegen/fortran.py +++ b/dagrt/codegen/fortran.py @@ -47,6 +47,7 @@ def pad_fortran(line, width): line += '&' return line + wrap_line = partial(wrap_line_base, pad_func=pad_fortran) diff --git a/dagrt/codegen/python.py b/dagrt/codegen/python.py index c876387eedf0535a53d63b974165bf074da268bf..903b22b9eb98356e7d6b4657a8a41bf0a262f453 100644 --- a/dagrt/codegen/python.py +++ b/dagrt/codegen/python.py @@ -42,6 +42,7 @@ def pad_python(line, width): line += '\\' return line + wrap_line = partial(wrap_line_base, pad_func=pad_python) _inner_class_code = '''from collections import namedtuple diff --git a/dagrt/function_registry.py b/dagrt/function_registry.py index 7026b2d1ba018a8406e5aecfdf4c91041e2627e6..1581a07f85dd9a1a3677f67da5520511e2be21df 100644 --- a/dagrt/function_registry.py +++ b/dagrt/function_registry.py @@ -455,6 +455,7 @@ def _make_bfr(): return bfr + base_function_registry = _make_bfr() # }}} diff --git a/doc/misc.rst b/doc/misc.rst index 2250db3eedf570d6fbaa7a003d8a1ce7637f3f65..2e2e8df0f583b668dbd71129738bced92fbd44bc 100644 --- a/doc/misc.rst +++ b/doc/misc.rst @@ -69,3 +69,15 @@ Frequently Asked Questions The FAQ is maintained collaboratively on the `Wiki FAQ page `_. + +Acknowledgments +=============== + +Andreas Klöckner's work on :mod:`dagrt` was supported in part by + +* the Department of Energy, National Nuclear Security Administration, under Award Number DE-NA0002374, +* the US National Science Foundation under grant number CCF-1524433. + +AK also gratefully acknowledges a hardware gift from Nvidia Corporation. The +views and opinions expressed herein do not necessarily reflect those of the +funding agencies. diff --git a/test/test_codegen_python.py b/test/test_codegen_python.py index 0d47816c30d72229dea16adf9f631ea943ae6645..e119ea32e9e4c4884161729c5df1cd561005decd 100755 --- a/test/test_codegen_python.py +++ b/test/test_codegen_python.py @@ -423,6 +423,7 @@ def test_svd(python_method_impl): assert la.norm(result) < 1e-10 + if __name__ == "__main__": if len(sys.argv) > 1: exec(sys.argv[1])