eigen-magma
eigen-magma copied to clipboard
undefine GEMM_SPECIALIZATION macro
hi Manuel,
Thank you for helping out :)
Can you please give a minimal description of what this GEMM_SPECIALIZATION macro is for and why it should be undefined?
Would this change affect the bechmark results?
Many thanks in advance, Best regards, Giovanni
Hi,
your question is a little confusing because this macro was not defined by me, but by Giovanni Azua (is that you?). It defines a specialization of the general matrix-matrix product function for magma.
However, it was not undefined after usage which can cause bugs when this header file is used.
Hi,
I am even more confused because [after looking a bit more carefully] that macro is what actually enables the template specialization that invokes MAGMA, therefore undefining it is like removing the MAGMA layer which is the main purpose of this project ...
That macro was introduced in the GeneralMatrixMatrix_MKL.h implementation and therefore replicated in the MAGMA implementation. Undefining it makes no sense whatsoever.
btw Yes I'm Giovanni Azua ;)
Undefining it makes no sense whatsoever
It does: the macro is used and afterwards it should be undefined again. Undefining it will not affect the previous usage.
OK now I understand, makes sense. The same fix applies to the GeneralMatrixMatrix_MKL.h implementation too and to all other *_MKL and *_MAGMA.h as well.
Thanks. Best regards, Giovanni
Glad I could prevent some potential bugs in the future ;)
hmmm but then I would prefer your pull request to patch all affected instances of the problem and not just one case.