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

Add -march=native in clang compile flags to enable auto-vectorization #406

Open
wants to merge 1 commit into
base: main-dev
Choose a base branch
from

Conversation

Ngalstyan4
Copy link
Contributor

Tested on Macbook Pro with 2.4 GHz Intel Core i9, Clang 15

grep output of objdump on bench_cpp when these flags are present:

postgres@4832feb5168c:/lantern_shared/third_party/usearch/build_release$
objdump -d ./bench_cpp | grep vzero | head
       1cad3:       c5 f8 77                vzeroupper
       1cb1e:       c5 f8 77                vzeroupper
       ...

grep output is empty when the flags are not present

    Tested on Macbook Pro with 2.4 GHz Intel Core i9, Clang 15

    Output of objdump on bench_cpp when these flags are present:

    postgres@4832feb5168c:/lantern_shared/third_party/usearch/build_release$
    objdump -d ./bench_cpp | grep vzero | head
       1cad3:       c5 f8 77                vzeroupper
       1cb1e:       c5 f8 77                vzeroupper
       ...

    grep output is empty when the flags are not present
@Ngalstyan4 Ngalstyan4 force-pushed the main-dev branch 2 times, most recently from 11cfb94 to cf0fff3 Compare May 25, 2024 02:41
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

Successfully merging this pull request may close these issues.

1 participant