-
Notifications
You must be signed in to change notification settings - Fork 19
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
Symbolic ConservedVars
and _cls_has_array_context_attr=True
#672
Comments
IMO, this is further evidence that inducer/arraycontext#162 should happen. Where is |
We don't call Line 232 in c9d43c8
and we set this: Line 54 in c9d43c8
The main concern that I had is that there must be some performance implication of setting things up to use Do you have any guidance on that? |
The performance concern is just for the traversal of the container structure, which doesn't happen at execution time when we're using lazy eval, so I think that's a minor concern.
I'm not sure that makes sense. I'm still thinking that inducer/arraycontext#162 should happen soon-ish. That means the overload logic that @MTCam is asking about will have to be a bit more generous in terms of what it accepts, but I think that's an OK price to pay for the removal of something that ostensibly makes no sense. |
Some of the tests construct
ConservedVars
instances containing pymbolic expressions, and thus don't have array contexts. This is causing warnings to be emitted, e.g.:This comes from the
ConservedVars.array_context
attribute. I don't think we can useget_container_context_recursively_opt
here without changing how we set_cls_has_array_context_attr
(which IIRC is not something we want to do?)Not sure exactly how to avoid this. Do we need something like a pymbolic array context?
cc @inducer
The text was updated successfully, but these errors were encountered: