Re: [eigen] Eigen containers cannot be vectorized |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
On Dec 8, 2016, at 3:21 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxxx> wrote:
Interesting analysis!
I would draw a different conclusion from it though: compiler auto-vectorization is hopeless :-)
Which is why explicitly-vectorized code like Eigen exists :-)
Cheers,BenoitHi Benoit.Automatic vectorization is difficult, but not hopeless. I agree that the compiler needs help from time to time, especially in C/C++ because of pointer aliasing. But Intel compilers do a lot with automatic vectorization. Since you look french, here is a video I have done for Intel showing the optimization of a code that relies completely on automatic vectorization : https://www.youtube.com/watch?v=pJbo6Z4NrgM&feature= . Sorry, I don’t have any english version yet.youtu.be
François Fayard
Founder & Consultant - Inside Loop
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |