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

Fix aligned loads and stores in unaligned kernels #661

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

argilo
Copy link
Member

@argilo argilo commented Oct 19, 2023

Various unaligned kernels (volk_32f_accumulator_s32f_u_sse, volk_32f_s32f_s32f_mod_range_32f_u_sse2, volk_32fc_32f_dot_prod_32fc_u_avx2_fma) load input data using aligned loads, so they fail when given unaligned input buffers. Here I've fixed that by switching them to unaligned loads.

@argilo
Copy link
Member Author

argilo commented Oct 19, 2023

The test failures are due to #646.

Signed-off-by: Clayton Smith <argilo@gmail.com>
@argilo argilo force-pushed the fix-unaligned-loads branch from 91b6922 to 152ce7d Compare October 19, 2023 14:59
@argilo
Copy link
Member Author

argilo commented Oct 19, 2023

I missed an unaligned load in volk_32f_s32f_s32f_mod_range_32f_u_sse, and there were also unaligned stores in volk_32f_s32f_s32f_mod_range_32f_u_sse and volk_32f_s32f_s32f_mod_range_32f_u_sse2, so I've fixed those too.

Test runs at various vector lengths now pass in all kernels.

@argilo argilo changed the title Fix aligned loads in unaligned kernels Fix aligned loads and stores in unaligned kernels Oct 19, 2023
Copy link
Contributor

@jdemel jdemel left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for checking!

@jdemel jdemel merged commit 782b319 into gnuradio:main Oct 22, 2023
32 checks passed
@argilo argilo deleted the fix-unaligned-loads branch December 2, 2023 16:48
Alesha72003 pushed a commit to Alesha72003/volk that referenced this pull request May 15, 2024
Fix aligned loads and stores in unaligned kernels
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.

3 participants