-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
macOS: Universal2 build fails on SSE2 #334
Comments
Hi, There's a similar issue when building |
Your reference says "For a list of compiler macros, see the compiler documentation.". Which compiler are you using? |
The latest XCode LLVM that Apple ships aka |
Thanks, I can't find a list of predefined macros for AppleClang but if you run the compiler like Build with |
Hi,
We ship openPMD-api as binary wheels for python users containing c-blosc for postprocessing tasks.
With ARM being strong with the Apple M1 processors, we want to build
universal2
wheels that contain both x86_64 and arm64 code. We produce them on macOS 11.0 x86_64 GitHub actions runners.Multi-arch builds for macOS are very easy with CMake, we just need to set:
Unfortunately,
c-blosc
SSE2 breaks the build for SSE2. The only alternative I have is to disable SSE2 acceleration altogether at the moment, which means thatx86_64
code in the universal binary will not be accelerated either. Is there maybe a way to make this more flexible? :)Refs.: https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
X-ref: openPMD/openPMD-api#1233
The text was updated successfully, but these errors were encountered: