Re: [eigen] Slow matrix-matrix multiply |

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

*To*: eigen <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] Slow matrix-matrix multiply*From*: Sameer Agarwal <sameeragarwal@xxxxxxxxxx>*Date*: Tue, 2 Apr 2013 11:42:54 -0700*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=SddmThdylXJo+Astgt4Qra+CAOdlPiAKXWfrrNZD/vA=; b=GrMZealnLkbNW6W8hAAEnmauLJtt7gQcNQ18/+KwDhgvLFBVoaFCOc9Qiv27vfPH5v 6l6Vawhdq6WW9K+RBcgXo7YurSrUxh2CRd9fH2zairOFi7di+kxhGfrknArp6TWany79 sSO6xmHuYv2jQgh9AoxGb89AB7qcMOLhv08nVobE4sJk+ixHo8qsX64XqN0PJ668u/s4 tOAxs8BUqIZcqlvN3fzHKBJruz4ju0vvSI/fbfSp29qmwDsdzneznUtHtP+zzgL0oZPD igPU19gxA6mGYlK5CQmS6jpCg8OkwodVRcgd79adhn1ccm30xgFPUZsK+tBu/2IEB3Md Qstg==

Here is the gerrit CL that is used for generating these numbers

Sameer

On Tue, Apr 2, 2013 at 11:34 AM, Sameer Agarwal <sameeragarwal@xxxxxxxxxx> wrote:

Gael and Christoph,Thank you for looking into this.Yes adding -mllvm -inline-threshold=600 makes the timing of Eigen comparable to CUSTOM_GEMM.However, I went ahead and replaced all use of small block operations in the eliminator with simple gemm and gemv implementations. And the time has dropped even further. Which would not be the case if inlining were the only thing at work here.With the increased inlining 1.02sWith custom blas 0.634sI get roughy similar numbers with g++4.2 on macos. I also tested this on linux with g++ 4.6.3, where the linear solver time goes from 0.8 to .5 seconds.SameerOn Tue, Apr 2, 2013 at 5:23 AM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

On Tue, Apr 2, 2013 at 1:58 PM, Gael GuennebaudAn alternative is to add the following compiler option:

<gael.guennebaud@xxxxxxxxx> wrote:

> After adding a few always_inline attributes

-mllvm -inline-threshold=600

gael

**Follow-Ups**:**Re: [eigen] Slow matrix-matrix multiply***From:*Sameer Agarwal

**References**:**[eigen] Slow matrix-matrix multiply***From:*Sameer Agarwal

**Re: [eigen] Slow matrix-matrix multiply***From:*Christoph Hertzberg

**Re: [eigen] Slow matrix-matrix multiply***From:*Gael Guennebaud

**Re: [eigen] Slow matrix-matrix multiply***From:*Gael Guennebaud

**Re: [eigen] Slow matrix-matrix multiply***From:*Gael Guennebaud

**Re: [eigen] Slow matrix-matrix multiply***From:*Gael Guennebaud

**Re: [eigen] Slow matrix-matrix multiply***From:*Sameer Agarwal

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Slow matrix-matrix multiply** - Next by Date:
**Re: [eigen] Slow matrix-matrix multiply** - Previous by thread:
**Re: [eigen] Slow matrix-matrix multiply** - Next by thread:
**Re: [eigen] Slow matrix-matrix multiply**

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