rust-lang / packed_simd

Portable Packed SIMD Vectors for Rust standard library
https://rust-lang.github.io/packed_simd/packed_simd_2/
Apache License 2.0
587 stars 74 forks source link

platform_intrinsics feature has been removed #360

Open lixiaoyong12 opened 5 months ago

lixiaoyong12 commented 5 months ago
......\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

``` ```

jianshu93 commented 5 months ago

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

jianshu93 commented 4 months ago

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

calebzulawski commented 4 months ago

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.

keys-i commented 2 months ago

is this fixed yet?