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
AXPBY is introduced as BLAS extensions, but I haven't found corresponding correctness tests. LoongArch64 has added corresponding optimizations, but correctness cannot be guaranteed. What should be done in this case?
Hmm, awkward. Seems this was added ten years ago (#285) without test cases - and as it is an extension, it is not covered by the small testsuites in test and ctest (which were taken from the Reference BLAS) and neither by the standalone BLAS-Tester (based on the ATLAS testsuite). No other implementation uses it internally (except GEADD which is an extension without testcases itself). Guess one would need to create at least something simple in utest (comparing to known good results from a C implementation like the one in kernel/arm, or from certain "competing" packages)
Thank you for your prompt reply. I have an additional question: Is it forgotten or is there some other reason that {s/d/sc/dz}amax doesn't have CBLAS interfaces.
Can't say if it was forgotten, or if it was intentionally excluded as it is a BLAS extension. This appears to be a historical choice (or oversight) dating back to GotoBLAS, and it seems only the (comparatively recent) cmake build creates these cblas functions "by accident" while the Makefile does not have them.
Activity
[-]AXPBY Interface Correctness Assurance[/-][+]LoongArch64: AXPBY Interface Correctness Assurance[/+]martin-frbg commentedon Jan 24, 2024
Hmm, awkward. Seems this was added ten years ago (#285) without test cases - and as it is an extension, it is not covered by the small testsuites in test and ctest (which were taken from the Reference BLAS) and neither by the standalone BLAS-Tester (based on the ATLAS testsuite). No other implementation uses it internally (except GEADD which is an extension without testcases itself). Guess one would need to create at least something simple in utest (comparing to known good results from a C implementation like the one in kernel/arm, or from certain "competing" packages)
martin-frbg commentedon Jan 24, 2024
Oops, your wish was just fulfilled by @kseniyazaytseva in #4457 - sometimes things are moving a bit too fast here for me
XiWeiGu commentedon Jan 25, 2024
Thank you for your prompt reply. I have an additional question: Is it forgotten or is there some other reason that
{s/d/sc/dz}amaxdoesn't have CBLAS interfaces.martin-frbg commentedon Jan 25, 2024
Can't say if it was forgotten, or if it was intentionally excluded as it is a BLAS extension. This appears to be a historical choice (or oversight) dating back to GotoBLAS, and it seems only the (comparatively recent) cmake build creates these cblas functions "by accident" while the Makefile does not have them.