I have a SIMD project that does CPU feature detection and uses macros to provide a nice SIMD api, and the sample app works for me on Windows, and Linux, but a user has reported an issue on OSX:
https://github.com/jackmott/nim_simd/issues/4
I don't have a mac handy so was wondering if anyone had tips for narrowing down the cause. Are there compiler flags that might include more info on the error? Or OSX tricks to do so? Anything stand out?
Hello,
I also got this error on OSX with an older Mac ( MacBookPro Late 2011). I got this error too on the Linux partition (KDE Neon =~ Ubuntu 16.04) using clang (oddly, gcc is fine).
The program is compiled with -mavx2, but the cpu of my Mac supports up to AVX instructions. Depending on the optimizations, the compiler may or may not use the entire instruction set available, and that's why it gets an Illegal Instruction imo. I guess sdwfrost's Mac doesn't support AVX2 instruction too, but I didn't check.
My take on this is the same I previously posted: https://forum.nim-lang.org/t/3415/1