Coder Social home page Coder Social logo

Comments (7)

kabicm avatar kabicm commented on May 16, 2024 3

We will publish soon (probably tomorrow) the version 2.1, which will include one more feature and will have this bug fixed, so that we can also update it in cp2k :)

from cosma.

kabicm avatar kabicm commented on May 16, 2024

@oschuett Thanks for the issue! Is COSMA here built with MKL? Because I see OMP_NUM_THREADS explicitly set but MKL_NUM_THREADS not.

from cosma.

oschuett avatar oschuett commented on May 16, 2024

It's build with the default toolchain. So, Openblas and Scalapack. We never set MKL_NUM_THREADS in our tests. The div-by-zero occurred in H2O-32.inp with a single MPI rank and 8 OpenMP threads.

from cosma.

kabicm avatar kabicm commented on May 16, 2024

Thanks, I am able to reproduce it. It doesn't seem like a serious bug, just the wrong division strategy is being produced. I will work on it.

from cosma.

oschuett avatar oschuett commented on May 16, 2024

I think, it's best to avoid divisions by zero as they gives undefined results.
In CP2K we often use foo / MAX(1,bar) for these edge cases.

Btw, personally I'm a big fan of floating point exception (which trigger for integers too). They can be very useful while adding virtually no overhead.

from cosma.

kabicm avatar kabicm commented on May 16, 2024

Fixed in commit: 808abd7! Not sure if that would just hide these bugs even more?

from cosma.

oschuett avatar oschuett commented on May 16, 2024

Thanks! Of course, catching these edge cases in a single place, as you did, is the best solution :-)

from cosma.

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.