sarah-ek / faer-rs

Linear algebra foundation for the Rust programming language
https://faer-rs.github.io
MIT License
1.79k stars 58 forks source link

Does faer use SIMD api ? #51

Closed moluopro closed 1 year ago

moluopro commented 1 year ago

Wondering if faer is using SIMD api. If not, maybe SIMD can make faer faster

iverks commented 1 year ago

Yes it does, a whole bunch. A quick search of the repository gave 3132 instances of the word simd. From what I can tell it uses the library pulp by the same author as a safe abstraction. Maybe have a look at it if SIMD interests you :)

I'm sure there are more places simd instructions can be added, in fact a pretty recent overhaul was related to simd.

So: yes, faer is using simd, and yes, simd can make faer faster