From 64e167e97082a27ed324dcd8aa9cf2a9fdff6b90 Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Thu, 10 Feb 2022 08:04:38 +0100 Subject: [PATCH] Debug checking --- pystencils_tests/test_vectorization_specific.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pystencils_tests/test_vectorization_specific.py b/pystencils_tests/test_vectorization_specific.py index 2dc4e2de..0148f2f4 100644 --- a/pystencils_tests/test_vectorization_specific.py +++ b/pystencils_tests/test_vectorization_specific.py @@ -77,6 +77,7 @@ def test_strided(instruction_set, dtype): default_number_float=npdtype) ast = ps.create_kernel(update_rule, config=config) assert len(warn) == 0 + ps.show_code(ast) func = ast.compile() ref_func = ps.create_kernel(update_rule).compile() @@ -86,6 +87,13 @@ def test_strided(instruction_set, dtype): func(g=dst, f=arr) ref_func(g=ref, f=arr) + + # print(dst) + # print(ref) + + print(np.sum(dst)) + print(np.sum(ref)) + np.testing.assert_almost_equal(dst, ref, 13 if dtype == 'double' else 5) -- GitLab