Re: [eigen] matrix::linspace |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] matrix::linspace
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sun, 24 Jan 2010 14:16:58 -0500
- 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=o7cPnxJfewlAacZFUh/OZ+cPHHKk9ykuShX9LGa1hE0=; b=f0yO/QDrfvuWXpUrhe+m4Z2iaoMa2SCbZB1NIrLfOsy04dE8GKeqqSAdwgeRpgxc/f OiILGfPfuSx74SFbir3OC4EtUvsO3ZJ+Bcpx6nKtRlI6Y5EiV5+tuImrhuKGZAYdr9Fw y+zHnj6KPXyIqh++4JVuuya54DGqXgSNxLeWE=
- 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=wBlg5a7NRm2MQUgGO61soG+xoJaYlrqMwEGmmBBKUwRIwLjRhr7lEJNEVpdxXkejHC ah9JIFTEqDffMcP3QG3EzGClhyUV7rLRiyjAcEHtbxUySqbk9wzc/vYeMKuffbBrP+yO 7zpAoMqZLGGmg0UqFkvHrRtKlgkBREF1I0An0=
2010/1/24 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> I put the function calls in EIGEN_DONT_INLINE functions and ran
> everything again but still see no improvement... But I've found
> something. In
>
> ei_assign_impl<Derived1, Derived2, LinearVectorizedTraversal,
> NoUnrolling>::run()
>
> there are three parts - assigning unaligned start, assigning aligned
> middle and finally assigning unaligned end. When I comment out the
> unaligned sections, I get
>
> vec: 791.646 ms
> lin: 1796.26 ms
Now we're talking!
>
> which is nice and reasonable. So, MSVC has an optimization issue over
> here. In my particular case, the unaligned cases are anyways empty and
> skipping them does not hurt.
This could then be quite far reaching: this path in Assign.h is used
for much more than just this particular functor, so this is really
worth understanding and fixing / working around!
Benoit