-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat[next]: Enable tests for embedded with cupy #1372
Conversation
tests/next_tests/integration_tests/feature_tests/ffront_tests/ffront_test_utils.py
Outdated
Show resolved
Hide resolved
for arg in utils.flatten_nested_tuple(args): | ||
if hasattr(arg, "array_ns"): | ||
return arg.array_ns | ||
return np |
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.
instead of returning np, maybe the save thing would be to error for now.
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.
Minor comments and questions. It should be ready to merge in the next iteration.
Co-authored-by: Enrique González Paredes <enriqueg@cscs.ch>
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.
ILGTM
Introduces mechanism in tests for having different allocators for the same (
None
) backend.Fixes:
pytest.mark.uses_scan_without_field_args
for cupy embedded execution.Refactoring:
TODOs for later:
broadcast
of scalar ignores the broadcast