Skip to content
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 Universal Binary support #130

Open
hmenke opened this issue Oct 19, 2022 · 2 comments
Open

macOS Universal Binary support #130

hmenke opened this issue Oct 19, 2022 · 2 comments

Comments

@hmenke
Copy link
Member

hmenke commented Oct 19, 2022

Currently we only build macOS binaries on macOS 11 x86_64. These binaries can run on the newer arm64 hardware (M1/M2) but will be emulated within Rosetta 2, which results in degraded performance. Code for x86_64 and arm64 can be generated and packaged into what Apple calls a Universal Binary.

People interested in native support for pairinteraction on M1 or M2 Macs please leave a 👍 on this issue (using the emoji reactions in the bottom left corner of this issue card), so that we can gauge whether it would make sense to invest time and money in the necessary hardware.

@nelsond
Copy link

nelsond commented Jul 4, 2023

Would definitely be great if pairinteraction could be made to run on Apple silicon.

I quickly tried to build on an M1, but ran into issues since the MKL libraries were not available. I would be happy to invest more time if there was potentially a bit of assistance to get this going.

@seweber
Copy link
Member

seweber commented Jul 5, 2023

You can try the commands that we use to build pairinteraction for non-M1 Macs. Instead of installing MKL, we use brew install lapack to obtain a linear algebra library. However, because we do not have access to an M1, I am not sure whether these instructions also work for the M1 architecture. Thus, it would be great if you can let us know. If you find a way to build pairinteraction on an M1, I would be very happy to add it to the documentation.

Adding such instructions to the documentation is perhaps the best we could do for now, because building binaries for M1 is not yet supported by GitHub Actions (according to actions/runner#805 (comment), M1 might be supported some time later this year, hopefully).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants