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

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE*From*: Michael Riesch <michael.riesch@xxxxxx>*Date*: Thu, 14 Mar 2019 05:08:25 +0100*Authentication-results*: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=tum.de*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/simple; d=tum.de; h= content-type:content-type:in-reply-to:mime-version:user-agent :date:date:message-id:from:from:references:subject:subject :received:received; s=postout; t=1552536506; bh=ITdP3HD9N3jwUXgs U3+cciq3XRrQOny5KJrfnDqusss=; b=h/Ps2FG2RNfdOxEj+seYRo3WY23GkM+n vIOcOGAXA4p3McI4sdstWOPkDbK0muncTVYBIIQxhzzB2Vja8MXiLSQJi/prs/vg QVs3kAhA9YuqvGOUp1PPz+XIs2R1L/hVclsuIRZilahvLXkpqNGPh/PETRO9pL4t kGUXAHqQiPemvL//oCQXnX7T9vspvjKz+IrB9nw05RKYLudDwdycUNhRpE1asCse ZAwRfuRNViSPrSjpZhZwn9+bncLt9edcrqaqq6dhbqdkC1JTC78uz1+jspBHSmj1 HOd2jwKtkIbwhJw8kOd95aaZMJPJkjGAR2F/9XpA0j2fDZ9EOsWmhg==

Hello Christoph, thanks for your answer! We could easily remove EIGEN_COMP_ICC from the cases where EIGEN_STRONG_INLINE is a __force_inline:Same here, hence I wanted to ask whether defining EIGEN_STRONG_INLINE has some disadvantages. According to the Intel profiling tools, my function that contains all the calculations actually calls the Eigen functions (e.g., Eigen::Matrix<...>::Matrix<...> and Eigen::Matrix<...>::operator=). I expected that those will be inlined. Is this something to worry about? Maybe I should add that I do not use the -inline-forceinline flag for the Intel compiler since this lead to incredibly long compilation times. Did you try to reduce your code to a minimal example where the performance drop occurs?Yes, but I cannot comprehend the performance drop yet. Apparently the quite complex structure of the project produces this behavior, whereas in a small application which performs similar calculations the performance is about the same. Work in progress. Regarding mbsolve: Sure, please give us a small description text and tell which category you want to get listed in.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." Thanks a lot for any comments! Regards, Michael [1] https://github.com/mriesch-tum/mbsolve |

**Follow-Ups**:**Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE***From:*Christoph Hertzberg

**References**:**[eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE***From:*Michael Riesch

**Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE***From:*Christoph Hertzberg

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Call for survey questions** - Next by Date:
**Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE** - Previous by thread:
**Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE** - Next by thread:
**Re: [eigen] Performance difference icc <-> gcc, EIGEN_STRONG_INLINE**

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