Git Product home page Git Product logo

Comments (7)

JesusTorrado avatar JesusTorrado commented on July 25, 2024

Hi Vivian,

Though it sounds very useful, but I am afraid it would be a nightmare for us the developers: as you said there are non-thread-safe codes, so we would need to know in advance which one is or isn't (and that would conflict with letting the user use an arbitrary unknown-to-us python function as a likelihood).

Our approach is to compute each likelihood sequentially, and rely on the likelihood authors to take advantage of OpenMP palletisation themselves in the internal of the likelihood computation. If done right, this should result in a similar performance to computing the likelihoods in parallel on different threads.

Does this answer your question? Is there a specific setting that you are finding yourself into (e.g. having to evaluate tens of different likelihoods), so that we may be able to find an alternative way to speed it up?

from cobaya.

vivianmiranda avatar vivianmiranda commented on July 25, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 25, 2024

If CosmoLike does internal caching, then this should be solved by specifying speeds for individual parameters (as opposed to per-likelihood speeds), which is precisely #1

Keep an eye on it!

from cobaya.

cmbant avatar cmbant commented on July 25, 2024

The DES theory components are implemented in the DES code rather than in the theory at the moment because they make a bunch of non-general approximations (Limber, neglect RSD, etc..). It's a bit tricky in general to decide how to best split things up, but certainly agree this could be pulled out somehow.

from cobaya.

vivianmiranda avatar vivianmiranda commented on July 25, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 25, 2024

Hi both,

If e.g the P(k)-->gamma_t/w_theta/xi can be generalised and abstracted, we'd still need to implement some way to pipe more than one theory code (camb+that), which is in the pipeline anyway for 2.0.

from cobaya.

vivianmiranda avatar vivianmiranda commented on July 25, 2024

from cobaya.

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.