
On Jan 14, 1:34 am, Stéfan van der Walt <ste...@sun.ac.za> wrote:
On Sun, Jan 1, 2012 at 11:02 PM, Nadav Horesh <nadavh.hor...@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

On Wed, Jan 25, 2012 at 2:54 PM, David <cournape@gmail.com> wrote:
On Sun, Jan 1, 2012 at 11:02 PM, Nadav Horesh <nadavh.hor...@gmail.com> wrote:
Shouldn't be a way to copy compilation flags from
On Jan 14, 1:34 am, Stéfan van der Walt <ste...@sun.ac.za> wrote: 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
Thanks for your help. Do you (or anyone else on the list) have any idea how to attempt compilation of a Cython file and gracefully exit if it's unsuccessful? (By graceful, I mean: continue compiling the rest of the package and don't produce *.so files for failed modules.) -Tony
participants (2)
-
David
-
Tony Yu