Skip to content

Issues with zeros et al functions of array contexts #161

Open

Description

@inducer
  • Decide between actx.np.zeros and actx.zeros.
  • zeros_like doesn't currently retain metadata from its argument, resulting in lazy compile issues.

cc @majosm @MTCam @kaushikcfd

Activity

  1. alexfikl commented on May 2, 2022

    @alexfikl
    Collaborator

    actx.zeros doesn't work on containers (like all the other methods in actx), so they're not quite equivalent. Should it?

  2. inducer commented on May 2, 2022

    @inducer
    OwnerAuthor

    I don't see why it shouldn't. actx.freeze is (legitimately) growing container support (#158).

  3. alexfikl commented on Jun 27, 2022

    @alexfikl
    Collaborator

    Did some of this work in #178:

    • actx.zeros_like and actx.empty_like work on containers.
    • at least the eager pyopencl version propagates tags in both of those.

    actx.zeros and actx.empty can't really get support for array containers, since they don't have a template to mimic. Also, there's no actx.np.zeros, so that should be done as well!

  4. inducer commented on Jun 28, 2022

    @inducer
    OwnerAuthor

    Thanks for working on that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions