Skip to content

axpby native impl does unnecessary allocations and deep copies #2920

@brian-kelley

Description

@brian-kelley

In KokkosBlas::axpby, when a and b (coefficients) are both views, it seems like all possible codepaths allocate a new view for each of them and fill or deep_copy to them. This isn't conditioned on whether the input a/b are accessible to the execution space. In general this should not be needed, since our implementation should be OK with a and b having any layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions