packed_simd icon indicating copy to clipboard operation
packed_simd copied to clipboard

platform_intrinsics feature has been removed

Open lixiaoyong12 opened this issue 1 year ago • 4 comments

......\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>

lixiaoyong12 avatar Mar 12 '24 08:03 lixiaoyong12

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 avatar Mar 25 '24 14:03 jianshu93

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

jianshu93 avatar Mar 31 '24 20:03 jianshu93

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.

calebzulawski avatar Apr 01 '24 23:04 calebzulawski

is this fixed yet?

keys-i avatar Jun 19 '24 00:06 keys-i