diff --git a/pystencils_tests/test_math_functions.py b/pystencils_tests/test_math_functions.py index 031e2320bc1ca0063168bc4c20ccf5642df875e7..5655fbda60012d612ff7686f2d7288784b3a004f 100644 --- a/pystencils_tests/test_math_functions.py +++ b/pystencils_tests/test_math_functions.py @@ -33,7 +33,8 @@ def test_two_arguments(dtype, func, target): dh.run_kernel(kernel) dh.all_to_cpu() - np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0, 2.0).evalf())) + np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0, 2.0).evalf()), + 13 if dtype == 'float64' else 5) @pytest.mark.parametrize('dtype', ["float64", "float32"]) diff --git a/pystencils_tests/test_vectorization_specific.py b/pystencils_tests/test_vectorization_specific.py index 2dc4e2de998afe02cd207308ebe11f6264fee43a..44274156eff8e1bbf07be0eeffad5919492bfb83 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()