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

Autovectorization on x86 #355

Open
Janmajayamall opened this issue Jun 3, 2023 · 0 comments
Open

Autovectorization on x86 #355

Janmajayamall opened this issue Jun 3, 2023 · 0 comments

Comments

@Janmajayamall
Copy link

I have a, b, c of type Array1<u64>. a is mutable reference, whereas b & c are just reference. I want to set each element in a as product of elements in b & c at corresponding indices. Implementation is relatively straightforward and can be vectorized by compiler. However, I noticed that compiler only vectorizes when I iter using a, b, and c as slices but not as.view().

This is link to both implementations. Notice that nd_mul_u64_view is not vectorized and nd_mul_u64_slice is.

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

No branches or pull requests

1 participant