Re: [eigen] a few more points... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] a few more points...
- From: "Benoit Jacob" <jacob.benoit.1@xxxxxxxxx>
- Date: Sat, 3 Jan 2009 14:48:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=cVPweK8FNs4nYc6W6RjvlmiZdfgKg0N9QPyO0+aNsGg=; b=RIpCH+W1X/S2OzYyQaqbEoIu6tt03nqGdna13i/6RoopiWbByEYOOAoTybRXulXMfN 9VroZB4T9/3v/XPCPNPIJ9nuMkaPDC5IHlnK2JOr2GTr1H5fSO1fCm4YkcubNVK0cfO8 K2n5UzxSGt/4ujB61xEtbJ4D1+/TzDL4nKziU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Zo0WPXe8f8+FKTqr4YNZiYiQviQOTDtIUpCcEWvF104MjuK/xsfq0WppzawNrdMAWP Z0rpCxnxeHR0y69JrTfgouBrV3LpnBOpaQtw3rS0Kdl6CBM+CrO1mwk70cVNRTnHNdFP RE+tZ7wq60QoNM8vLkpjCR0WNoZ5UBgVxU0gk=
2009/1/3 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> actually, in that example ForceAligned is automatically set by Eigen,
> but of course, for such a small block it is useless because the
> vectorized path won't be taken. So just to make it clear, let's take
> another example:
>
> VectorXf a(1000), b(150);
> a.segment(3,150) += b;
>
> in that case, ForceAligned is still automatically set by Eigen for the
> subvector of "a" (in MapBase) which allow to perform read operation
> from a.segment(3,150) in an aligned fashion. This is because in
> Assign.h we guarantee that store operations are always aligned.
Ah, I really understand now. ForceAligned is set generously because it
doesn't mean that packet access will be used, it only says that IF
packet will be used then it will be aligned. So you can set
ForceAligned without asking 36 questions about whether vectorization
is actually possible.
Thanks,
Benoit
---