Need an advice

David cournape at gmail.com
Wed Jan 25 14:54:44 EST 2012



On Jan 14, 1:34 am, Stéfan van der Walt <ste... at sun.ac.za> wrote:
> On Sun, Jan 1, 2012 at 11:02 PM, Nadav Horesh <nadavh.hor... at gmail.com> wrote:
> > Shouldn't be a way to copy compilation flags from pythonx.x/config/Makefile?
> > I think (not sure) that numpy does it.
>
> I've CCd David Cournapeau on this e-mail; I think he'll be able to
> recommend the best route forward
> (David, the full message is here:http://groups.google.com/group/scikits-image/browse_thread/thread/a2d...
> ).
>
> One alternative is to simply try the compilation, first with the fast
> math flag, then without, and then have a conditional import in the
> code that loads whatever survives the compilation process (with
> ndimage's convolve as a backup).

I would advise against using -ffast-math, which really should be
called -funsafe-math. We removed it in scipy some time ago as it had
the annoying property of giving completely borked results.

David



More information about the scikit-image mailing list