Skip to content

Commit

Permalink
fix(frontends): Fixing tests which rely on cmdline not on configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Mar 11, 2024
1 parent 1d0cf03 commit 1a4f179
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ def function(x):
return rounded**2

inputset = range(-32, 32)
circuit = function.compile(inputset, helpers.configuration())
configuration = helpers.configuration()
circuit = function.compile(inputset, configuration)

expected_mlir = (
"""
Expand All @@ -272,7 +273,7 @@ def function(x):
}
""" # noqa: E501
if pytestconfig.getoption("precision") == "multi"
if not configuration.single_precision
else """
module {
Expand Down Expand Up @@ -304,7 +305,8 @@ def function(x):
return rounded + rounded

inputset = range(-20, 20)
circuit = function.compile(inputset, helpers.configuration())
configuration = helpers.configuration()
circuit = function.compile(inputset, configuration)

expected_mlir = (
"""
Expand All @@ -320,7 +322,7 @@ def function(x):
}
""" # noqa: E501
if pytestconfig.getoption("precision") == "multi"
if not configuration.single_precision
else """
module {
Expand Down

1 comment on commit 1a4f179

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a4f179 Previous: 1d0cf03 Ratio
v0 PBS table generation 60036218 ns/iter (± 2821715) 59970948 ns/iter (± 302457) 1.00
v0 PBS simulate dag table generation 37398832 ns/iter (± 431157) 37335424 ns/iter (± 277155) 1.00
v0 WoP-PBS table generation 65264860 ns/iter (± 600591) 65517159 ns/iter (± 1492521) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.