Git Product home page Git Product logo

Comments (4)

jaberg avatar jaberg commented on June 12, 2024

I'm afraid this is essentially expected and by design. The sim_npy simulator ultimately does all the same things for number crunching as the reference simulator (e.g. calling np.dot, numpy broadcasting, etc.) but each step involves a lot more overhead because, for one, of all the indexing into the raggedarray. The sim_npy simulator could be sped up, but probably not beyond the reference implementation.

I'm tempted to close this issue, I'm not sure what can/should be done about this.

from nengo-ocl.

tbekolay avatar tbekolay commented on June 12, 2024

Perhaps add a docstring to the top of the sim_npy file explaining why it's slower than the reference?

from nengo-ocl.

hunse avatar hunse commented on June 12, 2024

I guess I had assumed that any overhead would be minimal, but apparently there's a lot! There's no need for sim_npy to go fast, but I agree with Trevor that a note would be nice, just saying that the simulator's slow and only meant for helping to test and debug the OCL simulator. I can add that tomorrow.

from nengo-ocl.

jaberg avatar jaberg commented on June 12, 2024

More radically, consider a mandatory argument to the sim_npy.Simulator
constructor like i_really_want_the_slow_npy_version :) That would make
anyone think twice about creating that class directly.

On Wed, Sep 18, 2013 at 8:48 PM, Eric Hunsberger
[email protected]:

I guess I had assumed that any overhead would be minimal, but apparently
there's a lot! There's no need for sim_npy to go fast, but I agree with
Trevor that a note would be nice, just saying that the simulator's slow and
only meant for helping to test and debug the OCL simulator. I can add that
tomorrow.


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-24710598
.

from nengo-ocl.

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.