Re: [eigen] (General question) Floating point: why are 'inf' and 'nan' slow?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


fp exceptions are handled in software. Is it 32 bit or 64 bit? If it
is 32 bit, have you enabled -mfpmath=sse in your compiler flags?

On Wed, Sep 23, 2009 at 6:21 AM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> Hi,
>
> Sorry for adding to the currently already high traffic here.
>
> Here, on linux / x86, my programs run 100x slower when the
> floating-point values are 'inf' or 'nan'.
>
> Only scalar code is affected, SSE code is not affected.
>
> I haven't enabled floating-point exception signals. I don't have a FP
> signal handler. Just any basic c++ program.
>
> Can this be "fixed"? How?
>
> Otherwise, I really need to make sure that solve() methods avoid
> producing such special values when no solution exists --- otherwise
> they take much longer to return.
>
> Thanks for your help,
> Benoit
>
>
>



-- 
Rohit Garg

http://rpg-314.blogspot.com/

Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/