Re: [eigen] Re: vectorization for ints not working |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Re: vectorization for ints not working
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Sat, 12 Sep 2009 14:11:49 +0530
- 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; bh=v/AFwBYedC3qGhMe3h32/wARcAjiGo4hH9/pMsWRSJ0=; b=vnIUvJhyf5fZgYGv2a0S3WBq7qTUzlvoTv7iy79oIg4RRBl2UECij8pLudAvdffeR0 RLpZIEBslCH5xYKFcZyAtr1cZMJStgp6KC5liOT8ArNc2uBgkrY9rlwmRhC0BqaiTOu1 qB41PzotSrjL7KHn6Jdi9XKc51OZx/yfR4wNc=
- 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; b=J8tmTrBl7SyHjJ3yaMw4bdZCB4DTcaEIf06p8zOh56fPSo6IPv4GN/7khMETQVzYDl Pj5hsHbKUTJfJ1p757vUqHF3+oSF7z1WBt5/kSCzn6F6KBExuGA0rW7YXt11ggXhG9D0 8RTVB+5rF4SGlI6v9puLNcT8vHUEtkeuXAOgs=
On Sat, Sep 12, 2009 at 1:31 PM, Gael Guennebaud
<gael.guennebaud@xxxxxxxxx> wrote:
> yes this is because I did not expect such kind of use of Map for small
> fixed size vectors. Actually why don't you use an Eigen vector for
> "bytes" ? Then you won't need to use Map.
Good idea. I think there might be a way to do this. Actually, this
code is to be wrapped to python via swig and I wanted to avoid
letting swig run amok eigen's headers, so it was done this way.
> Anyway, to make Map more usable what we have to do is to add a
> FirstAligned option to Map so that Eigen knows your data is
> aligned.... The ForceAlign option has a different meaning.
What does ForceAligned mean then? I though it was to let eigen know
that the pointer is aligned. :|
>
> cheers,
> gael.
>
> On Sat, Sep 12, 2009 at 8:24 AM, Rohit Garg <rpg.314@xxxxxxxxx> wrote:
>> PS: this is eigen's unstable branch, but using code checked out a
>> month or so ago.
>>
>> On Sat, Sep 12, 2009 at 11:50 AM, Rohit Garg <rpg.314@xxxxxxxxx> wrote:
>>> I had a simple piece of code involving matrix4i, and it is not
>>> compiling with vectorization. This is on fedora 11, 64 bit, gcc 4.4.1.
>>> To compile, use make eigen. I am interested in vectorization of the
>>> code in the addressesGen function, which enclosed in asm directives.
>>> There are clear signs of eigen unrolling the loop, but I'd like my
>>> vectorization please. :)
>>>
>>> To compile, do make eigen.
>>>
>>> --
>>> Rohit Garg
>>>
>>> http://rpg-314.blogspot.com/
>>>
>>> Senior Undergraduate
>>> Department of Physics
>>> Indian Institute of Technology
>>> Bombay
>>>
>>
>>
>>
>> --
>> Rohit Garg
>>
>> http://rpg-314.blogspot.com/
>>
>> Senior Undergraduate
>> Department of Physics
>> Indian Institute of Technology
>> Bombay
>>
>>
>>
>
>
>
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay