You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
core:: SIMD primitives not inlined with stable Rust (1.51.0) with target-cpu=native #189
I don't know why, but for some reason the SIMD core primitives are not being inlined if I build simd-json with stable Rust. It works fine with nightly (2021-04-23) though.
changed the title [-]`core::` primitives not inlined with stable Rust (1.51.0)[/-][+]`core::` SIMD primitives not inlined with stable Rust (1.51.0)[/+]on May 3, 2021
changed the title [-]`core::` SIMD primitives not inlined with stable Rust (1.51.0)[/-][+]`core::` SIMD primitives not inlined with stable Rust (1.51.0) with `target-cpu=native`[/+]on May 3, 2021
This is a really great find! Perhaps we should change the REAME to suggest using target-feature=+avx,+avx2,+sse4.2 instead? I can make this change but since you found it I don't want to steal the contribution :)
This is a really great find! Perhaps we should change the REAME to suggest using target-feature=+avx,+avx2,+sse4.2 instead? I can make this change but since you found it I don't want to steal the contribution :)
Rust 1.52 is scheduled to be released in two days and I have verified that it is fixed in that version. So I think we can get away with not changing the docs and just closing this after a while as this bug really only affects Rust 1.51.
Activity
[-]`core::` primitives not inlined with stable Rust (1.51.0)[/-][+]`core::` SIMD primitives not inlined with stable Rust (1.51.0)[/+]hkratz commentedon May 3, 2021
Ahh, that is a known issue which was fixed during the beta but not backported to 1.51.0. Urgh.
Not sure if we want to do something in the docs about this given that this is what is recommended in the README. Leaving open for triage.
[-]`core::` SIMD primitives not inlined with stable Rust (1.51.0)[/-][+]`core::` SIMD primitives not inlined with stable Rust (1.51.0) with `target-cpu=native`[/+]Licenser commentedon May 4, 2021
This is a really great find! Perhaps we should change the REAME to suggest using
target-feature=+avx,+avx2,+sse4.2instead? I can make this change but since you found it I don't want to steal the contribution :)hkratz commentedon May 4, 2021
Rust 1.52 is scheduled to be released in two days and I have verified that it is fixed in that version. So I think we can get away with not changing the docs and just closing this after a while as this bug really only affects Rust 1.51.
hkratz commentedon May 13, 2021
Confirmed fixed in 1.52 and not the fault of simd-json anyway.
Licenser commentedon May 13, 2021
Thank you!