Re: [eigen] Low performance in DEBUG mode |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Low performance in DEBUG mode
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 25 Oct 2010 08:22:09 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=MxQkXu4FL2xWEzal7mF2f2KwaSpxNlHzL7pNs8rYwV0=; b=JFhqcSCKdKS9aUk4qgTIHBTch+Qsuxpu0538FgpCj0HQfESpOmQIQ0scc+iL39aDbk 8BPJHrGv3IBCprQgkJeArbohVbb8vI1De/bJmtqUiBRblCk/tMVNgoFHmuOEpjk9OQh7 GJWXDVZnQChgbasH2W/MQxlNcicB5xMnobs4o=
- 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=g3utuCSQbWLODv6uTQcixetgRBvLWZRsPMvNQvkvyhnTNJgcnapx4kND0uGdxF1hEc RAj+GLKqq89GHST67MkSIW958kkAMzVrGnEck4AwaM0qt0cn2N/vdg0SfPgfNB7PqN1Z IFTnubQceSaUbmvzH7KEI1pO/u6ue7aB+Oe7I=
2010/10/25 Mathias Goldau <math@xxxxxxxxxxxxxxxxxxxxxxxxx>:
> Am 25.10.2010 13:22, Benoit Jacob wrote:
> [snip]
>
>>> The last third is specific to Eigen's unit tests. They enable special
>>> Eigen debugging code that makes them slower than regular debug mode
>>> (EIGEN_INTERNAL_DEBUGGING). Basically, every coefficient access, even
>>> internal ones, is checked to be in range (default debug mode skips
>>> that on eigen-internal coefficient addressing and only checks user
>>> addressing).
>>>
>>>> , is there a way
>>>> around to compile my unit tests also in debug mode, but with a bit more
>>>> performance in the end?
>>>> Even setting our cmake build type to: RelWithDebugInfo resulting effective in
>>>> those CXX flags: "-g -DDEBUG -O2" shows no improvement. I assume this depends
>>>> on the "-DDEBUG", am I right?
>>>
>>> No, -DDEBUG is just enabling regular assertions, that's not too slow.
>>>
>>> It's weird that RelWithDebInfo wasn't any faster for you. I checked
>>> the whole command line with VERBOSE=1 make, and it should really be
>>> optimized and fast:
>>>
>>> -g2 -O2 -g -O2 -g2
>>>
>>> (redundancy is no problem)
>>
>> Please try today's hg development branch with RelWithDebInfo. a Cmake
>> issue was recently fixed.
>
> Oh dear!, I tried it with new checkout from hg, but with no success since I've
> should checked earlier with VERBOSE=1! I typed: RelWithDebugInfo instead of
> RelWithDebInfo, now I've fast unittests with debug info :D, so thank you for
> your help and explanation from above.
ok, let me add back the cmake code checking the cmake build type, so
that in the future you get a good error message.
Benoit
>
> Mathias
>
> --
> Institut für Informatik
> Universität Leipzig
> Johannisgasse 26, 04103 Leipzig
> Phone: +493419732283
>
>
>