packed_simd
packed_simd copied to clipboard
platform_intrinsics feature has been removed
......\packed_simd-0.3.9\src\lib.rs:218:5
|
218 | platform_intrinsics, | ^^^^^^^^^^^^^^^^^^^ feature has been removed | = note: SIMD intrinsics use the regular intrinsics ABI now -->
#![feature(portable_simd)]
use std::simd::f32x4;
fn main() {
let a = f32x4::splat(10.0);
let b = f32x4::from_array([1.0, 2.0, 3.0, 4.0]);
println!("{:?}", a + b);
}
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose:
rustc 1.78.0-nightly (5119208fd 2024-03-02)
crate version in Cargo.toml:
[dependencies]
packed_simd="0.3.9"
Backtrace
<backtrace>
Hello all, I also had the same error here when using packed simd via the portable_simd feature. I understand that this is not actively maintained but it is really useful for platforms such as aarch64, where the simdeez crate doest not support and we have to use the portable_simd feature.
Thanks,
Jianshu
Hello all, any update since last time. I still have this error in the most recent nightly 1.79. I have to go back to 1.77. For aarch64 CPUs this is really the most convenient way to use SIMD.
Thanks,
Jianshu
This library has been effectively deprecated in favor of std::simd in the nightly compiler. I would accept a pull request but unfortunately I don't think there is anyone with time or interest to maintain this project.
is this fixed yet?