GithubHelp home page GithubHelp logo

Comments (7)

lucaferranti avatar lucaferranti commented on August 17, 2024

havent forgotten, working hard hardly working

from intervalarithmetic.jl.

dpsanders avatar dpsanders commented on August 17, 2024

I'm not sure that Core-Math can be used for our purporse, since it apparently requires using fesetround to specify the rounding mode required, which has caused issues with LLVM in the past

from intervalarithmetic.jl.

dpsanders avatar dpsanders commented on August 17, 2024

Also changing the processor's rounding mode is not thread-safe.

I suggest reaching out to Paul Zimmermann to discuss this. (W e had an email conversation about it, but I dropped the ball.)

from intervalarithmetic.jl.

dpsanders avatar dpsanders commented on August 17, 2024

Hmm, apparently the state of fesetround is supposed to be per thread. But this will need careful implementation and testing!

from intervalarithmetic.jl.

dpsanders avatar dpsanders commented on August 17, 2024

The other approach with this is performance. Changing the rounding mode clears out the processor pipeline (or at least used to?) so will be much slower (?)

from intervalarithmetic.jl.

dpsanders avatar dpsanders commented on August 17, 2024

If I remember correctly he suggested using the prevfloat / next float approach for performance...!

from intervalarithmetic.jl.

OlivierHnt avatar OlivierHnt commented on August 17, 2024

Interesting, thanks for pointing this out.
Using Core-Math does not solve all the performance issues, but it does (or seems to) avoid using MPFR.
I will have to take a closer look at fesetround, I do not know much on the inner workings of these things. I do hope that a modern and maintained library for correctly rounded functions can be incorporated into Julia 🙂.

from intervalarithmetic.jl.

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.