#simd #vectorization #vectorized #intrinsics #interface #portable #architecture-specific

nightly no-std npsimd

An ergonomic library for architecture-specific vectorization

4 releases (2 breaking)

0.3.0 Sep 3, 2024
0.2.1 Jul 18, 2024
0.2.0 Jul 17, 2024
0.1.0 Jul 14, 2024

#1736 in Hardware support

Download history 5/week @ 2024-07-22 7/week @ 2024-07-29 137/week @ 2024-09-02 16/week @ 2024-09-16 13/week @ 2024-09-23 5/week @ 2024-09-30

249 downloads per month

MIT license

380KB
6K SLoC

Non-Portable SIMD for Rust

When writing high-performance vectorized code, it is absolutely necessary to take advantage of architecture-specific SIMD functionality. But this is not possible in "portable SIMD" libraries which abstract away that functionality. This Rust library aims to provide a type-safe and high-level interface to work with platform-specific SIMD intrinsics, providing a more ergonomic experience over inline assembly or C-like intrinsics.

Warning: this library is currently under development, and is not yet suitable for production use. A high-level API is still being designed, and a rigorous testing system is yet to be implemented.

License

Copyright (c) 2024 Arav K. awe3i3t50qyqv8jo@bal-e.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Dependencies

~0.6–1.2MB
~22K SLoC