You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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?
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.
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.
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.
Activity
brada4 commentedon Apr 28, 2016
You mean - to wrap _symm with 2 transforms?
edelsohn commentedon Apr 30, 2016
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.
brada4 commentedon May 1, 2016
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
zerothi commentedon May 2, 2019
This would be nice! :)
xrq-phys commentedon Feb 4, 2021
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?
martin-frbg commentedon Feb 11, 2021
Not implemented yet, but not forgotten either. I agree that it does look more like syr2k than symm.
jgillis commentedon Jan 3, 2022
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"
egaudry commentedon Jan 17, 2022
I'd like to second that : GEMMT feature's implementation would be great :).
mohawk2 commentedon Feb 22, 2022
ReLAPACK provides this: https://github.com/HPAC/ReLAPACK/blob/master/src/dgemmt.c
egaudry commentedon Feb 22, 2022
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).
mohawk2 commentedon Feb 22, 2022
Not the reference one: https://github.com/Reference-LAPACK/lapack/search?q=dgemmt shows no hits.
egaudry commentedon Feb 22, 2022
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.
martin-frbg commentedon Feb 22, 2022
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.
egaudry commentedon Feb 22, 2022
fair point @martin-frbg; I'll stop arguing as I cannot devote time to help :)
larsoner commentedon Jul 5, 2022
Looks like this is the last blocker for 0.3.21, should this have been closed by #3548?
amcamd commentedon Jan 16, 2023
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.
martin-frbg commentedon Jan 17, 2023
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