Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform_intrinsics feature has been removed #360

Open
Tracked by #4
lixiaoyong12 opened this issue Mar 12, 2024 · 4 comments
Open
Tracked by #4

platform_intrinsics feature has been removed #360

lixiaoyong12 opened this issue Mar 12, 2024 · 4 comments

Comments

@lixiaoyong12
Copy link

lixiaoyong12 commented Mar 12, 2024

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

@programmerjake programmerjake transferred this issue from rust-lang/portable-simd Mar 12, 2024
@programmerjake programmerjake changed the title feature has been removed platform_intrinsics feature has been removed Mar 12, 2024
@jianshu93
Copy link

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
Copy link

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
Copy link
Member

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
Copy link

keys-i commented Jun 19, 2024

is this fixed yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants