Skip to content

Pick gemm vs gemv automatically? #341

Description

@bluss

About picking the “gemm” vs “gemv” algorithm automatically for matrix × column:

In a.dot(b)? Anywhere else?

There are two competing concerns with this question:

  • The user knows their data and picks the operation they know they need
  • The library knows the memory layout cases and picks the best algorithm.

Activity

  1. lloydmeta commented on Aug 15, 2017

    @lloydmeta
    Contributor

    Continuing our conversation in #190, I think I agree with what you said:

    I think it would be natural to have a.dot(b) adaptive but the more raw methods general_mat_mul and general_mat_vec_mul to always use their “gemm” and “gemv” algorithms respectively.

    Essentially, try to be smart but offer an escape hatch for the end user.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions