-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix engine not renamed to platform in some tests #535
Conversation
Fix `test_prints.py` when cuquantum is installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -50,7 +50,7 @@ def test_backend_methods_list(tested_backend, target_backend, method, args): | |||
tested_func = getattr(tested_backend, method) | |||
target_func = getattr(target_backend, method) | |||
target_result = target_func(*args) | |||
if tested_backend.name == "qibojit" and tested_backend.engine.name in ["cupy", "cuquantum"]: # pragma: no cover | |||
if tested_backend.name == "qibojit" and tested_backend.platform.name in ["cupy", "cuquantum"]: # pragma: no cover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is done in #533, in fact I completely removed this if
and updated the casting below so that it works with all backends/platforms and we don't have to modify it every time we update something in qibojit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, please merge in #533.
In some tests the old
engine
member ofJitCustomBackend
was still used. I renamed it toplatform
.