-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simple.nim example does not detect SIMD type on OSX #4
Comments
Thanks for testing that, probably something awry with CPU detection. what hardware is the osx box? |
Check out this post: Any chance that is relevant? Can you set minversion and resolve it? |
That didn't fix it. I get the same error on a Mac Pro (Late 2013), with 3 Ghz 8-core Intel Xeon E3, 64GB 1866 Mhz RAM, running OSX v 10.11.3 (El Capitan), as well as on a Mac Mini Server with El Capitan. |
I wonder if you put a bunch of echos in the cpu identification code to narrow down the LOC that causes the fault? |
The code compiles under debug: Detected cpu type:SSE41
A + B = R
@[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0]
@[0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, 20.0, 22.0, 24.0, 26.0, 28.0, 30.0]
@[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] The error only comes with |
@sdwfrost just wanted to let you know I am occasionally trying to figure this out as I have time. Been inquiring on the nim forums. |
@sdwfrost new version of nim, and all new cpu detection code! If you can get latest and try this with nim 0.18 and let me know what you get I would appreciate it. |
Hi @jackmott The code doesn't compile under clang at all:
As before, the code compiles with gcc under debug, but I still get an illegal instruction with -d:release. I'm using 0.18.1. |
@sdwfrost the error is here because Nim uses GCC-style assembly in its C files (if you embed ASM from nim) |
@Yardanico hmm, I'm trying to emit both styles of assembly depending on the C compiler used. |
@jackmott well, IDK, but it doesn't work with clang |
I'll get clang set up and figure it out, thanks for the feedback! |
@Yardanico @sdwfrost fix for clang is in, got it working on ubuntu. Will be interesting to see if we still get the illegal instruction with it. |
Hi @jackmott |
I guess I have a 3rd excuse to buy a mac |
@jackmott you can also try hackintosh :) |
@jackmott |
@jackmott |
simple.nim compiles and runs fine on my Ubuntu 16.04 box, but fails with the following under OSX, using either clang or gcc-7.
The text was updated successfully, but these errors were encountered: