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

Apple M1 does not support -march=native #33

Open
andreasvc opened this issue Jan 2, 2023 · 8 comments
Open

Apple M1 does not support -march=native #33

andreasvc opened this issue Jan 2, 2023 · 8 comments

Comments

@andreasvc
Copy link
Owner

As reported in andreasvc/disco-dop#68 (comment)_

@andreasvc
Copy link
Owner Author

@BrettRey are you using gcc? See [1]. From [2] it seems it might be an issue with clang.

[1] https://github.com/andreasvc/disco-dop/#mac-os-x
[2] https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1/66333485

@andreasvc andreasvc changed the title Apple M1 does not support --march=native Apple M1 does not support -march=native Jan 3, 2023
@andreasvc
Copy link
Owner Author

andreasvc commented Jan 4, 2023

Observations:

Also see https://stackoverflow.com/questions/52653025/why-is-march-native-used-so-rarely

@nschneid
Copy link

nschneid commented Jan 5, 2023

python3 setup.py install --with-mtune worked for @BrettRey

@lemire
Copy link

lemire commented Jan 6, 2023

Note that CRoaring supports runtime dispatching and it does not need specific compiler directives.

@lemire
Copy link

lemire commented Jan 6, 2023

That is, you do not march=native when compiling CRoaring to get good performance at runtime.

@lemire
Copy link

lemire commented Jan 12, 2023

I recommend updating CRoaring and dropping the march=native.

@Ezibenroc
Copy link
Contributor

@lemire Correct me if I am wrong, but I think this library does not depend on CRoaring, this is a full reimplementation in Cython.

@lemire
Copy link

lemire commented Apr 26, 2024

@Ezibenroc I think you are correct.

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

4 participants