Skip to content
Snippets Groups Projects

Address #13: Use sympy.codegen.rewriting.optimize

Merged Stephan Seitz requested to merge seitz/pystencils:use_codegen.rewriting.optimize into master
Viewing commit e8a92a9e
Show latest version
1 file
+ 3
3
Preferences
Compare changes
@@ -29,7 +29,7 @@ def test_sum():
@@ -29,7 +29,7 @@ def test_sum():
x.center(): sum
x.center(): sum
})
})
ast = pystencils.create_kernel(assignments)
ast = pystencils.create_kernel(assignments, sympy_optimizations=[])
code = str(pystencils.show_code(ast))
code = str(pystencils.show_code(ast))
kernel = ast.compile()
kernel = ast.compile()
@@ -57,7 +57,7 @@ def test_sum_use_float():
@@ -57,7 +57,7 @@ def test_sum_use_float():
x.center(): sum
x.center(): sum
})
})
ast = pystencils.create_kernel(assignments, data_type=create_type('float32'))
ast = pystencils.create_kernel(assignments, data_type=create_type('float32'), sympy_optimizations=[])
code = str(pystencils.show_code(ast))
code = str(pystencils.show_code(ast))
kernel = ast.compile()
kernel = ast.compile()
@@ -88,7 +88,7 @@ def test_product():
@@ -88,7 +88,7 @@ def test_product():
x.center(): sum
x.center(): sum
})
})
ast = pystencils.create_kernel(assignments)
ast = pystencils.create_kernel(assignments, sympy_optimizations=[])
code = str(pystencils.show_code(ast))
code = str(pystencils.show_code(ast))
kernel = ast.compile()
kernel = ast.compile()