Giter Site home page Giter Site logo

Comments (9)

mcseemk avatar mcseemk commented on June 13, 2024 1

This branch works fine for me. Tried stable/beta/nightly on AMD Ryzen 7950X and Graviton 1/2 - everything OK.

from simd-json.

Licenser avatar Licenser commented on June 13, 2024

Hi I can't reproduce this with the current version of simd-json and AVX2, can you share some details on version & CPU architecture you're trying this on?

from simd-json.

mcseemk avatar mcseemk commented on June 13, 2024

Hi, I figured out that it is not arch-related.

If compiled in release mode on the last nightly (rustc 1.73.0-nightly (6ef7d16be 2023-08-19)) it fails everywhere I tried: Graviton1/2, AMD Epyc 7551P, AMD Ryzen 7950X. In debug mode works fine though.

On the last stable rustc 1.71.1 (eb26296b5 2023-08-03) it works fine in both modes.

from simd-json.

Licenser avatar Licenser commented on June 13, 2024

Odd,

this works for me on both nightly and test in release mode:

$ cargo +nightly run --release
   Compiling simd-test v0.1.0 (/Users/heinz/Projects/simd-test)
    Finished release [optimized] target(s) in 2.17s
     Running `target/release/simd-test`
simd-json decoded string: {"arg":"test"}
serde-json decoded string: {"arg":"test"}
 $ cargo run --release
    Finished release [optimized] target(s) in 0.22s
     Running `target/release/simd-test`
simd-json decoded string: {"arg":"test"}
serde-json decoded string: {"arg":"test"}

from simd-json.

mcseemk avatar mcseemk commented on June 13, 2024

Try adding the following to the Cargo.toml:

[profile.release]
codegen-units = 1

Then it should start failing. Bizzarre indeed.

from simd-json.

Licenser avatar Licenser commented on June 13, 2024

Ah yes, that does it, but only for nightly. That's very likely a bug in nightly not simd-json but it's a good catch, perhaps best to report it to rust. I updated the repo if you want to link it.

from simd-json.

mcseemk avatar mcseemk commented on June 13, 2024

I filed the bug, but the response was discouraging. You can check there.

from simd-json.

Licenser avatar Licenser commented on June 13, 2024

could you give this branch a try: #308

from simd-json.

Licenser avatar Licenser commented on June 13, 2024

Fix is merged to 0.10.6, I'm closing the ticket, if there are more problems feel free to re-open or make a new one :) thanks for the report.

from simd-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.