Skip to content

Request GEMMT API #861

Closed
Closed

Description

@edelsohn

Intel MKL provides an additional GEMM variant, GEMMT, that updates only the upper or lower triangular part of the result matrix. This would be a great addition to OpenBLAS.

https://software.intel.com/en-us/node/590047

Activity

  1. brada4 commented on Apr 28, 2016

    @brada4
    Contributor

    You mean - to wrap _symm with 2 transforms?

  2. edelsohn commented on Apr 30, 2016

    @edelsohn
    Author

    I believe that the difference is more than wrapping SYMM with two transforms, but maybe I am misunderstanding your question.

    SYMM is described as
    C := alpha_A_B + beta*C
    https://software.intel.com/en-us/node/468488

    GEMMT is described as
    C := alpha_op(A)_op(B) + beta*C
    https://software.intel.com/en-us/node/590047

    with different limitations on A, B, and C. For GEMMT, the upper triangular or lower triangular part of C is overwritten by the respective part of the result.

  3. brada4 commented on May 1, 2016

    @brada4
    Contributor

    I wrote DGEMMT in julia and in no-transform case it became plain DSYMM call...
    It is really k--ka-s job they did with llvm

  4. zerothi commented on May 2, 2019

    @zerothi

    This would be nice! :)

  5. xrq-phys commented on Feb 4, 2021

    @xrq-phys

    Hi.

    I'm curious if anyone's still tuned-in for this request.
    To reillustrate the problem, GEMMT computes only a part of GEMM.
    It's different from SYMM in my opinion as neither of the 2 operands A&B has symmetry restrictions.
    Rather, it's more similar to SYR2K but with only A*transpose(B) term.

    GEMMT is beyond the BLAS standard but I guess it's implementation could be very close to SRYK/HERK?

  6. martin-frbg commented on Feb 11, 2021

    @martin-frbg
    Collaborator

    Not implemented yet, but not forgotten either. I agree that it does look more like syr2k than symm.

  7. jgillis commented on Jan 3, 2022

    @jgillis
    Contributor

    Fwiw, MUMPS solver ( http://mumps.enseeiht.fr/doc/userguide_5.4.1.pdf ) would benefit a lot: "We strongly recommend to use this ability if your BLAS library enables it"

  8. egaudry commented on Jan 17, 2022

    @egaudry

    I'd like to second that : GEMMT feature's implementation would be great :).

  9. egaudry commented on Feb 22, 2022

    @egaudry

    Thanks for the pointer, I still believe this feature might be offered by the BLAS it-self (as with other BLAS implementations on the market).

  10. egaudry commented on Feb 22, 2022

    @egaudry

    agreed, however when looking at MKL and BLIS, you can see them supported as it enables extra performance on various workload (MUMPS Direct Sparse Solver for instance); it seems like a low hanging fruit.

    Also, I understand why you gave the pointer to ReLAPACK, thanks for sharing it.

  11. martin-frbg commented on Feb 22, 2022

    @martin-frbg
    Collaborator

    Lots of low hanging fruit but never enough pickers (happens in real-world orchards too). ReLAPACK is included in OpenBLAS as a build-time option, but the gemmt there is not built by default (even in the original ReLAPACK source, see its config.h). I have not gotten around to checking if Peise's algorithm there actually works and is efficient.

  12. egaudry commented on Feb 22, 2022

    @egaudry

    fair point @martin-frbg; I'll stop arguing as I cannot devote time to help :)

  13. added this to the 0.3.21 milestone on Feb 22, 2022
  14. larsoner commented on Jul 5, 2022

    @larsoner
    Contributor

    Looks like this is the last blocker for 0.3.21, should this have been closed by #3548?

  15. removed this from the 0.3.21 milestone on Aug 8, 2022
  16. amcamd commented on Jan 16, 2023

    @amcamd

    There are comments above comparing gemmt to syr2k. I think it is more similar to syrkx provided by cuBLAS and rocBLAS. See the links below:

    syrkx allows for op(A)op(B)^T where gemmt allows for opa(A)opb(B). If one thinks in terms of gemm, gemmt allows NN, NT, TN, TT. syrkx only allows NT or TN.

  17. martin-frbg commented on Jan 17, 2023

    @martin-frbg
    Collaborator

    Thanks. GEMMT was added in #3796, to be released with 0.3.22, apparently I neglected to add the backlink to this issue in the PR

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