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

Question: can I create an array of SIMD vectors ? #2270

Closed
boxerab opened this issue Jul 5, 2024 · 2 comments
Closed

Question: can I create an array of SIMD vectors ? #2270

boxerab opened this issue Jul 5, 2024 · 2 comments

Comments

@boxerab
Copy link
Contributor

boxerab commented Jul 5, 2024

I am using dynamic dispatch for my highway code. Is it possible to declare an array of SIMD vectors,
so that the type of the array is resolved dynamically ?

@jan-wassenberg
Copy link
Member

Array of vector isn't possible for all targets due to RVV/SVE compiler limitations.
What we instead do is to pass a pointer to lanes (not vectors) into the entry point of dynamic dispatch. Then, the dispatched code can Load() from it to whatever the vector type is. Does that make sense?

@boxerab
Copy link
Contributor Author

boxerab commented Jul 5, 2024

Thanks, make sense. I will try to solve the problem with pointers to individual vectors instead.

@boxerab boxerab closed this as completed Jul 5, 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

No branches or pull requests

2 participants