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

SIMD Vectors for arm and aarch64 #296

Closed
ifacodes opened this issue Jun 19, 2022 · 6 comments
Closed

SIMD Vectors for arm and aarch64 #296

ifacodes opened this issue Jun 19, 2022 · 6 comments
Assignees

Comments

@ifacodes
Copy link

With core::arch::aarch64 having neon in stable (despite the documentation being a bit bugged and claiming some of it isn't), and the std::simd branch you have here, are you be considering implementing for these architectures as well?

@bitshifter
Copy link
Owner

Ah I didn't know about that. It's probably not difficult to add, the tricky part is I have no idea how I'd test it. It would be really great if std::simd was stabilised then I could just support that, but I don't know how far off that would be.

@bitshifter
Copy link
Owner

I've just added experimental core::simd support in main which could be used to get simd support on arm/aarch64 until I get around to adding explicit neon support. This does require nightly.

@ifacodes
Copy link
Author

thank you!!! I'll check it out in a separate branch

@bitshifter
Copy link
Owner

I have an experimental branch with neon support although I haven't worked on it in a while #379.

One thing I was finding is performance benefits were less clear than with SSE2. It's making me rethink the structure of glam a bit to make SIMD more opt in and less the default for a bunch of types.

@bitshifter
Copy link
Owner

bitshifter commented Mar 23, 2024

I have an experimental branch with neon support although I haven't worked on it in a while #379.

One thing I was finding is performance benefits were less clear than with SSE2. It's making me rethink the structure of glam a bit to make SIMD more opt in and less the default for a bunch of types.

Note that the only NEON hardware I have is a Raspberrypi, it's possible other hardware would give better results.

@bitshifter
Copy link
Owner

aarch64 neon support has been merged to main.

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