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

Unify unrolled euclidean distance computation functions and unroll for int8_t #32194

Merged

Conversation

vekterli
Copy link
Member

@baldersheim please review 🔍👀

Experiments on Mac M1 show the following unrolling factor results for int8_t:

 1:  84 ms (baseline)
 2:  41 ms
 4:  53 ms
 8:  82 ms
 16: 120 ms

I.e. an unrolling factor of 2 is chosen for int8_t. It is expected that this will also produce gains on x64 AVX{2,512}, but the concrete unrolling factor has not been fine-tuned for this architecture (yet).

…r `int8_t`

Experiments on Mac M1 show the following unrolling results for `int8_t`:

 1:  84 ms (baseline)
 2:  41 ms
 4:  53 ms
 8:  82 ms
 16: 120 ms

I.e. an unrolling factor of 2 is chosen for `int8_t`. It is expected that
this will also produce gains on x64 AVX{2,512}, but the concrete unrolling
factor has not been fine-tuned for this architecture yet.
@vekterli vekterli requested a review from baldersheim August 20, 2024 13:37
@vekterli vekterli merged commit 5557453 into master Aug 20, 2024
3 checks passed
@vekterli vekterli deleted the vekterli/unify-unrolled-euclidean-distance-and-unroll-i8 branch August 20, 2024 13:47
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.

2 participants