Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
BUG: included Accelerate.h instead of deprecated vecLib #276
This change lets scipy build on Xcode 4.4/OS X 10.8, System Python 2.7.2
I don't know what the actual implications of this might be, so a more informed developer should probably check this out before it goes in.
I can't really speak to the release policy, but if uptake of 10.8 is fast, it may be warranted.
On the blas errors, it looks like all of the failures indicate that single-precision is not handled correctly:
from scipy.lib.blas import cblas print cblas.sasum() # 0.0 print cblas.sasum([1.1]) # -1.0842021724855044e-19 print cblas.sasum([1.2]) # 2.0 print cblas.sasum([1.3]) # -2.0 print cblas.sasum([1.5]) # 0.0
double-precision seems to be handled just fine.
AFAIK, some of the single precision functions in Veclib have g77 ABI, some have gfortran ABI, which is a source of this mess. (Above, I suspect
On releases: I suspect 0.10.2 is unlikely, 0.11.0 more likely.
added a commit
this pull request
Aug 1, 2012
This didn't fix the problem for me. I was getting the same compilation error related to #include <vecLib/vecLib.h> described by minrk, but having pulled the fix with #include <Accelerate/Accelerate.h>, the same file still fails to compile with a series of errors:
In file included from /System/Library/Frameworks/vecLib.framework/Headers/vecLib.h:43, from /System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:20, from scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/veclib_cabi_c.c:2: /System/Library/Frameworks/vecLib.framework/Headers/vfp.h: In function ‘vceilf’: /System/Library/Frameworks/vecLib.framework/Headers/vfp.h:53: error: incompatible types in return /System/Library/Frameworks/vecLib.framework/Headers/vfp.h: In function ‘vfloorf’: /System/Library/Frameworks/vecLib.framework/Headers/vfp.h:54: error: incompatible types in return