Re: [eigen] speedup debug mode |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] speedup debug mode
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 6 Oct 2011 00:03:32 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Klr9iqlkDU9JuDdg4wU/a/GwgQ20KT+PIo6OhKywUZk=; b=lcaxxDBJfKBOLUqw+DBept8Ql1y1sDjhQ34jmxJqvzhVeSwZOMU/inreDtv4uG22SY jy1CI3niDACsa20t1bsQNioOxZ3TANOD7LMMEBGQeiX3zzC3ffFNrCC9JA4PEq9ckYKi VkqV4uma3Kp6Bk9SzAEhntG/ITElZe46FRw2k=
Asserts are not very costly though you can disable Eigen's one with
-DEIGEN_NO_DEBUG. The real slow down comes from the lack of inlining
and basic optimization. Compiling with -O1 -g2 usually gives a good
tradeoff.
Gael.
On Thu, Oct 6, 2011 at 12:01 AM, Michel <michel.pacilli@xxxxxxx> wrote:
> Hi,
>
> Is it possible to define a flag to speed up matrix operation in debug mode?
> It seems to have a lot of assert and so on, witch make any calculation very
> long, and sometime I just want to debug my algo without all checks inside
> eigen code.
>
> regards,
>
> michel
>
>
>