Giter Site home page Giter Site logo

Comments (7)

ongardie avatar ongardie commented on June 9, 2024

Hey @sowani, sorry for the long delay. Why'd you close this? It seems like a valid complaint to me.

How about changing:

EXPECT_LT(a + 1000 * 1000, b);

to:

EXPECT_LT(a + 1000 * 900, b);

Would that be good enough for most reasonable CPUs?

from logcabin.

sowani avatar sowani commented on June 9, 2024

@ongardie Thanks for responding and re-opening this issue. I closed it as I didn't get any response and did not hope to get any, so your response was indeed welcome!

I tried the changes you suggested and obtained a few results. The test fails even with "900". Typical values are as follows:
Run 1:
build/Core/TimeTest.cc:263: Failure
Expected: (a * 1000 * 900) < (b), actual: 876232819846779456 vs 7871584397350686
Run 2:
build/Core/TimeTest.cc:263: Failure
Expected: (a * 1000 * 900) < (b), actual: 896691502889979456 vs 7871607129220134
Run 3:
build/Core/TimeTest.cc:263: Failure
Expected: (a * 1000 * 900) < (b), actual: 977104264638579456 vs 7871696476734194

Thanks,
Atul.

from logcabin.

sowani avatar sowani commented on June 9, 2024

With some trial-and-error, I found that the multiplication factor of 500 works okay on ppc64le (a + 1000 * 500).

from logcabin.

ongardie avatar ongardie commented on June 9, 2024

I'm confused. What CPU produced the runs you showed above? I don't even know how to read that either, is it a vs b or a * 100 * 900 vs b? I still don't get why you'd multiply a by anything. In any case, those look off by much more than 1000 * 500.

from logcabin.

sowani avatar sowani commented on June 9, 2024

from logcabin.

ongardie avatar ongardie commented on June 9, 2024

Closed by #229.

from logcabin.

sowani avatar sowani commented on June 9, 2024

Thank you very much @ongardie !

from logcabin.

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.