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

avx vecwise butterflies #377

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

spapinistarkware
Copy link
Contributor

@spapinistarkware spapinistarkware commented Feb 22, 2024

This change is Reviewable

@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 55aae90 to 8dc2fed Compare February 22, 2024 12:32
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 9b212d5 to 4997f65 Compare February 22, 2024 12:32
This was referenced Feb 22, 2024
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 8dc2fed to 8c2ac4e Compare February 22, 2024 12:43
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 4997f65 to c3d66bd Compare February 22, 2024 12:43
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 8c2ac4e to 8f48b12 Compare February 23, 2024 06:54
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from c3d66bd to 3efcc1a Compare February 23, 2024 06:54
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 1a1a9aa to 755eb0c Compare March 3, 2024 06:42
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch 2 times, most recently from 0fd0b3c to 971615d Compare March 3, 2024 07:18
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch 2 times, most recently from f70e9b0 to 4e15286 Compare March 3, 2024 09:13
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 971615d to 90e82b4 Compare March 3, 2024 09:13
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 4e15286 to ac428d9 Compare March 3, 2024 10:02
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 90e82b4 to c9a4f8a Compare March 3, 2024 10:02
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from ac428d9 to c6ac5cc Compare March 3, 2024 11:49
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from c9a4f8a to 4f07fa1 Compare March 3, 2024 11:49
@ilyalesokhin-starkware
Copy link
Collaborator

src/core/backend/avx512/fft.rs line 160 at r1 (raw file):

/// Runs fft on 2 vectors of 16 M31 elements.
/// This amounts to 4 butterfly layers, each with 16 butterflies.
/// Each of the vectors represents natural ordered polynomial coefficeint.

Isn't this true only at the first layer?

Code quote:

/// Each of the vectors represents natural ordered polynomial coefficeint.

@ilyalesokhin-starkware
Copy link
Collaborator

src/core/backend/avx512/fft.rs line 178 at r1 (raw file):

    // TODO(spapini): The permute can be fused with the _mm512_srli_epi64 inside the butterfly.
    // The implementation is the exact reverse of vecwise_ibutterflies().
    // See the comments in its body for more info.

what body?

Code quote:

See the comments in its body for more info.

@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from c6ac5cc to 3075822 Compare March 3, 2024 12:27
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 4f07fa1 to a9f4c6e Compare March 3, 2024 12:27
Copy link
Contributor Author

@spapinistarkware spapinistarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @ilyalesokhin-starkware)


src/core/backend/avx512/fft.rs line 160 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

Isn't this true only at the first layer?

Yes, and this function only runs on the first layer, or equivalently, perform a full fft on the coefficients.


src/core/backend/avx512/fft.rs line 178 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

what body?

vecwise_ibutterflies()

@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 3075822 to 8300fe1 Compare March 3, 2024 12:56
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from a9f4c6e to ef3aa91 Compare March 3, 2024 12:56
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_ibutterfly branch from 8300fe1 to 823a462 Compare March 3, 2024 14:30
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from ef3aa91 to b8856e3 Compare March 3, 2024 15:29
@spapinistarkware spapinistarkware changed the base branch from spapini/02-20-avx_vecwise_ibutterfly to dev March 3, 2024 15:29
Copy link
Collaborator

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)

@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from b8856e3 to 9709cd8 Compare March 4, 2024 09:24
Copy link

graphite-app bot commented Mar 4, 2024

Merge activity

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/starkware-libs/stwo/377)
<!-- Reviewable:end -->
@spapinistarkware spapinistarkware force-pushed the spapini/02-20-avx_vecwise_butterflies branch from 9709cd8 to 02997ad Compare March 4, 2024 09:53
@graphite-app graphite-app bot merged commit 02997ad into dev Mar 4, 2024
5 of 6 checks passed
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