[eigen] Extracting the executed computations |

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

*To*: "eigen@xxxxxxxxxxxxxxxxxxx" <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: [eigen] Extracting the executed computations*From*: "Cowing-Zitron, Christopher" <ccowingzitron@xxxxxxxx>*Date*: Wed, 6 Feb 2013 20:20:00 +0000*Accept-language*: en-US*Dkim-signature*: v=1; a=rsa-sha256; c=simple/simple; d=ucsd.edu; i=ccowingzitron@xxxxxxxx; q=dns/txt; s=041709-iport; t=1360182004; x=1391718004; h=from:to:subject:date:message-id:mime-version; bh=p2+ujBKCu6DOwRBZvzrlXFzKyAhhOw5fkcwx6HjIQIY=; b=UYcuYWCncXtJSg6jcT2VxZoWDMOT8+N8UO8WuobLJksAWEZ0cg9W+ict 3Q+tOKpv5hAwT0tWsCmzcGFuh4TTRpIZNvA6+M20bx3WYhp2hJ2yNpNnG RqM/CIdVOXZP3N3viGj7gWQD23wbjtfuzrDghw5pXYY119ZJXOHGViX3Y I=;*Thread-index*: Ac4EpNRxsVxF5wr0Roym7IBFe9ORnQ==*Thread-topic*: Extracting the executed computations

Hello,
I'm interested in the internals of Eigen's _expression_ optimizations, in order to both optimize my usage of Eigen and to improve my overall programming techniques. Given some matrix _expression_ such as D=C+(A*B)^-1, I know Eigen doesn't actually execute anything until the equals sign. Rather, Eigen's _expression_ templates generate an optimized set of calculations, combining steps to avoid temporaries and aliasing, for instance. Eigen also rearranges the computations to make them more amenable to compiler optimizations like loop unrolling and autovectorization. But while I understand the general ideas, and the significance of each individual step, the complexity of both Eigen's and the compiler's optimizations are such that I have a hard time seeing the whole picture. Is it possible to have an _expression_ somehow print out or save the final computation sequence chosen by the compiler? If that's not possible with Eigen on its own, is there some third-party tool, i.e. a debugger or disassembler, that I can use in conjunction with Eigen which will record in human-readable format the executed computations? Thanks for your help, -- Chris |

**Follow-Ups**:**Re: [eigen] Extracting the executed computations***From:*Christoph Hertzberg

**Re: [eigen] Extracting the executed computations***From:*Márton Danóczy

**Re: [eigen] Extracting the executed computations***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] New Levenberg Marquardt stuff** - Next by Date:
**Re: [eigen] Extracting the executed computations** - Previous by thread:
**Re: [eigen] banded matrices in Eigen** - Next by thread:
**Re: [eigen] Extracting the executed computations**

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