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

Running on Apple Silicon #106

Open
AdamGEmerson opened this issue Aug 30, 2023 · 2 comments
Open

Running on Apple Silicon #106

AdamGEmerson opened this issue Aug 30, 2023 · 2 comments

Comments

@AdamGEmerson
Copy link

I ran into some issues running the library on Apple silicon due to the fact that gcc-6 only offers x_86 support.

I was able to fix this by modifying the Makefile to use gcc-12, which works for both mac and intel chips. I also had to remove the -msse2 flags, which appear to be related to Microsoft security features for Windows.

Perhaps we should update the readme to include information for Apple Silicon?

@zhezhaozz
Copy link

Can I ask how you modified the Makefile to the use later version of gcc?

@AdamGEmerson
Copy link
Author

Hey @zhezhaozz, unfortunately I don't have the modified code anymore.

I believe that in /Makefile I modified the CLFAGS line, removing the -msse2 flag.

CFLAGS = -std=c++11 -Wall -O3 -fopenmp  -I..

Then I think in /compile.sh, CXX=g++-6 gets changed to CXX=g++-12 but I'm not certain and you might need to play around with that flag.

if [ "$(uname)" == "Darwin" ]; then
    make all CXX=g++-12 | grep -v "Nothing to be done for"

If you get it working let me know.

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

No branches or pull requests

2 participants