Git Product home page Git Product logo

Comments (1)

denisalevi avatar denisalevi commented on June 3, 2024

Looking at some detailed benchmarking results, the STDP speed test with spikemonitor has a weird performance drop at N = 10^5 neurons. And looking at the profiling measurement the spikemonitor is taking up the most time. This is surely because the spikemonitor records all spikes from all those N neurons, but still the drop I can't quite understand.

The spikemonitor currently just loops through the spikespace and pushes spiking neuron IDs into a cudaVector. So maybe we just hid a point, where we end up having to reallocate a huge cudaVector and that is why we have that drop? Needs some more detailed profiling for N = 10^5 and maybe N = 5 x 10^5

And then I just had a look at the spikemonitor and realized we are serializing the recording of spiking neuron IDs, the kernel is called with 1 thread and 1 block. Can't we just reserve enough memory in the cudaVectors (since we know the number of spiking neurons at each timestep anyways) and then just write the recorded variables in parallel (thread <-> spiking neuron)?

from brian2cuda.

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.