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

perf: adds AVX512 implementations of vector.Sum, vector.InnerProduct + assembly refactor #547

Merged
merged 50 commits into from
Oct 7, 2024

Conversation

gbotrel
Copy link
Collaborator

@gbotrel gbotrel commented Sep 28, 2024

Description

In this PR:

Benchmarks

Benchmarks on size from 16 to 16M values.

Seems results are better on AMD EPYC 9R14 (hpc7a, c7a, r7a) than on the intel xeon 8488c (r7i, ...).

hpc7a
image

r7i
Screenshot 2024-10-03 at 2 29 02 PM
c7a
Screenshot 2024-10-03 at 2 28 49 PM

@gbotrel gbotrel requested review from ivokub, yelhousni and ThomasPiellard and removed request for ThomasPiellard September 28, 2024 16:24
@gbotrel gbotrel requested a review from Tabaie September 28, 2024 16:24
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without trying to understand the assembly definitions, looks good to me. There are a few comments, but rather minor.

field/goff/cmd/root.go Outdated Show resolved Hide resolved
internal/generator/tower/asm/amd64/e2.go Outdated Show resolved Hide resolved
internal/generator/tower/asm/amd64/e2_bn254.go Outdated Show resolved Hide resolved
field/generator/generator.go Outdated Show resolved Hide resolved
field/generator/asm/amd64/asm_macros.go Outdated Show resolved Hide resolved
field/generator/generator_test.go Show resolved Hide resolved
@gbotrel gbotrel merged commit e26bbdf into master Oct 7, 2024
5 checks passed
@gbotrel gbotrel deleted the avx512/innerproduct branch October 7, 2024 14:56
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