Subject: Re: [ublas] [PATCH 3/3] boost::ublas increasing the range of BLAS level 3 benchmarks
From: palik imre (imre_palik_at_[hidden])
Date: 2016-03-07 12:13:39
Right now I do run-time switching between the legacy and the gemm-based implementation based on the matrix size.
This incurs a slight overhead because of the extra branch, but this is the best tradeoff I was able to come up.
I'd rather avoid introducing a new function for multiplying matrices, as there are already five ways to do that in ublas.Â So it is already way more confusing than it should be.
I could change the branch to a compile-time one for matrix types where compile-time size information is available, but I am unsure of how widely those matrix types are used.Â (I've never seen anybody using anything else than vanilla matrix.)Â If you (or anybody) would be interested in such a feature, then please let me know.
On Monday, 7 March 2016, 17:56, Riccardo Rossi <rrossi_at_[hidden]> wrote:
just to give my two cents, some care shall be taken so that there is no overhead for very small matrices (say 3*3)
On Sun, Mar 6, 2016 at 9:58 PM, palik imre <imre_palik_at_[hidden]> wrote:
It just ocured to me, that based on the descriptor struct it would be possible to choose between parallel and serial implementation of the kernels.
Anybody would be interested in having something like that in ublas?
Would an OpenMP parallel implementation be accepted to the library?
On Sunday, 6 March 2016, 10:43, palik imre <imre_palik_at_[hidden]> wrote:
Fork is here: https://github.com/imre-palik/ublas/tree/feature/ublas00004_simd_gemm
pull request is sent.
ublas mailing list
Sent to: rrossi_at_[hidden]
-- Riccardo Rossi PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos lecturer at Universitat PolitÃ¨cnica de Catalunya, BarcelonaTech (UPC) Research fellow at International Center for Numerical Methods in Engineering (CIMNE) C/ Gran CapitÃ , s/n, Campus Nord UPC, Ed. C1, Despatx C908034 â Barcelona â Spain â www.cimne.comÂ -Â T.(+34) 93 401 56 96 skype: rougered4 Â Les dades personals contingudes en aquest missatge sÃ³n tractades amb la finalitat de mantenir el contacte professional entre CIMNE i voste. Podra exercir els drets d'accÃ©s, rectificaciÃ³, cancelÂ·laciÃ³ i oposiciÃ³, dirigint-se a cimne_at_cimne.upc.edu. La utilitzaciÃ³ de la seva adreÃ§a de correu electronic per part de CIMNE queda subjecte a les disposicions de la Llei 34/2002, de Serveis de la Societat de la InformaciÃ³ i el ComerÃ§ Electronic.Â Imprimiu aquest missatge, nomÃ©s si Ã©s estrictament necessari.