Re: [eigen] Tiny matrix in Eigen2 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Tiny matrix in Eigen2
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 17 Sep 2009 09:19:22 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+GJUWCu3B8WsDS7tP/q9Yu1+r3R5MWPYWRsOJ8CSczI=; b=YucaW5R5acuFxmpk1PcViYEtRhX2DWxl7KchQVDnqRR2pbFNfYjp09xI3EkIZUXzP+ lJwUy7r+Oj35qq1+qEogaELaIFy05MnED1HkguXb9NEeQLKc0LHCSan05MLDfj2b2Jl6 nYsj6krVKD7xAO2S0U9aR4QA09a1/E+BHA7FI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Xxf/JG6/+3Vx3RANUY3ZCrKeHyIOQhhC9TutSVrRdwJsORWOiYxJzMy0K98SsfNceV QyPqtBoGYTmBpHqVSbxo1W3IHbpjVfhffcpF8flYBMUBxyUN1vRJ8QzzY84oDXEIr9s7 jD6MES95N7sNdDIw4y2yT/qsa31iQuYZ3VQbQ=
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