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

Fix test case

parent 008e5b83
No related branches found
No related tags found
1 merge request!275WIP: Revamp the type system
...@@ -185,8 +185,7 @@ def test_piecewise2(instruction_set=instruction_set): ...@@ -185,8 +185,7 @@ def test_piecewise2(instruction_set=instruction_set):
np.testing.assert_equal(arr, np.ones_like(arr)) np.testing.assert_equal(arr, np.ones_like(arr))
def test_piecewise3(): def test_piecewise3(instruction_set=instruction_set):
instruction_set = "sve512"
arr = np.zeros((22, 22)) arr = np.zeros((22, 22))
@ps.kernel @ps.kernel
...@@ -196,9 +195,9 @@ def test_piecewise3(): ...@@ -196,9 +195,9 @@ def test_piecewise3():
g[0, 0] @= 1.0 / (s.b + s.k) if f[0, 0] > 0.0 else 1.0 g[0, 0] @= 1.0 / (s.b + s.k) if f[0, 0] > 0.0 else 1.0
ast = ps.create_kernel(test_kernel) ast = ps.create_kernel(test_kernel)
ps.show_code(ast) # ps.show_code(ast)
vectorize(ast, instruction_set=instruction_set) vectorize(ast, instruction_set=instruction_set)
ps.show_code(ast) # ps.show_code(ast)
ast.compile() ast.compile()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment