Re: [eigen] Tiny matrix in Eigen2

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


2009/9/17  <grey_earl@xxxxxx>:
>> On Thu, Sep 17, 2009 at 2:03 PM, WANG Xuewen <xuewen.wang@xxxxxxxxx> wrote:
>> > Hi,
>> >
> -- snip --
>> >
>> > typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic,
>> >                     Eigen::RowMajor | Eigen::DontAlign,
>> >                     NMaxTinyMatrixDimension, NMaxTinyMatrixDimension>
>> >       TinyRMatrix;
>> >
>
> You should definitely not use Eigen::DontAlign as this disables alignment in memory allocation which is necessary for SSE operations. Try without and use gcc switches -mfpmath=sse -O3 if you use gcc.

He won't get any vectorization anyway because the max-size is what
matters here, and being fixed at compile time, it should be a multiple
of 16 to allow vectorization. 7*7*8 isn't a multiple of 16, so no
vectorization.

Benoit



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