Last active
March 29, 2020 10:05
-
-
Save jvkersch/cb65d3c2ba6deca287d6 to your computer and use it in GitHub Desktop.
Bug in Apple's vecLib (OS X < 10.10)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* proof-of-concept incorrect */ |
Author
@matcross Thanks for the clarification, you're right. Out of curiosity, what led you to this gist? In any case, I will edit the gist to indicate that the code is incorrect.
Out of curiosity, what led you to this gist?
Hi, it was through Google. I was looking into some problems at NAG building our numerical libraries against vecLib. I think the search might have been 'Apple vecLib sdot' - I'd forgotten that the g77 convention did this to float-valued functions...
Author
I've checked my notes from that time, and I was trying to debug a similar issue (with NumPy indirectly calling into vecLib).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your prototype for SDOT is incorrect. The Fortran parts of Apple vecLib use the g77 calling convention, see e.g.
-ff2cat GCC 9.3.0 Code-Gen-OptionsSo under this ABI the return type for SDOT is
double.