Skip to content
Snippets Groups Projects
Commit 64e167e9 authored by Markus Holzer's avatar Markus Holzer
Browse files

Debug checking

parent 2556d843
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,7 @@ def test_strided(instruction_set, dtype): ...@@ -77,6 +77,7 @@ def test_strided(instruction_set, dtype):
default_number_float=npdtype) default_number_float=npdtype)
ast = ps.create_kernel(update_rule, config=config) ast = ps.create_kernel(update_rule, config=config)
assert len(warn) == 0 assert len(warn) == 0
ps.show_code(ast)
func = ast.compile() func = ast.compile()
ref_func = ps.create_kernel(update_rule).compile() ref_func = ps.create_kernel(update_rule).compile()
...@@ -86,6 +87,13 @@ def test_strided(instruction_set, dtype): ...@@ -86,6 +87,13 @@ def test_strided(instruction_set, dtype):
func(g=dst, f=arr) func(g=dst, f=arr)
ref_func(g=ref, 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) np.testing.assert_almost_equal(dst, ref, 13 if dtype == 'double' else 5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment