Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Thank you for the asm. Now I remember that ICC does no respect __forceinline if put at definition, unlike the standard inline keyword.  On the other hand, MSVC requires forceinline at definition. So we need to duplicate them at both definition and declaration. Sadly I cannot think about a way to automatically detect such mismatch... and there are 2543 occurrences to check :(

On Fri, Mar 15, 2019 at 9:16 AM Michael Riesch <michael.riesch@xxxxxx> wrote:

Hello Christoph and Gael,

I tried to extract the relevant assembly and attached it. In the file eigen_forceinline.txt is the critical part generated by default, the file eigen_inline.txt is the same but with EIGEN_STRONG_INLINE set to "inline". The compiler options are in both cases -O3 -g -DNDEBUG -fPIC   -xHost -qopenmp -std=gnu++11

Thanks and regards,
Michael

PS.:


> I think "Science" is the best fit, since mbsolve [1] "is an open-source
> solver tool for the Maxwell-Bloch equations, which are used to model
> light-matter interaction in nonlinear optics."

Done!
Thank you :-)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/