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

feat: add vector.Sum using AVX512 #544

Closed
wants to merge 14 commits into from
Closed

feat: add vector.Sum using AVX512 #544

wants to merge 14 commits into from

Conversation

gbotrel
Copy link
Collaborator

@gbotrel gbotrel commented Sep 22, 2024

Description

edit: this PR also includes #545

Adds vector.Sum(...) using AVX512 instructions when available.
Rough bench on r7i.xlarge instance gives 70-80% perf improvement for a vector with 1<<20 elements.

benchmark                        old ns/op     new ns/op     delta
BenchmarkElementVecOps/Sum-4     1689581       340038        -79.87%
BenchmarkElementVecOps/Sum-4     1679356       340570        -79.72%

Inspired with some modifications from https://github.com/a16z/vectorized-fields .

TODO

@gbotrel gbotrel marked this pull request as draft September 22, 2024 02:49
@gbotrel gbotrel marked this pull request as ready for review September 24, 2024 02:11
* refactor: move common assembly routines in root

* build: make linter happier

* style: cosmetics

* test: start fixing integration test

* style: factorize mul documentation

* feat: add .ASMVector and fix integartion test

* test: fix 32bit test

* test: fix previous commit
@gbotrel gbotrel requested a review from Tabaie September 24, 2024 14:50
@gbotrel gbotrel marked this pull request as draft September 26, 2024 18:13
@gbotrel
Copy link
Collaborator Author

gbotrel commented Sep 26, 2024

moving back to draft, will consolidate with other vecops (refactoring + better tests + cleaner)

@gbotrel gbotrel closed this Sep 28, 2024
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