Brian2CUDA: Generating Efficient CUDA Code for Spiking Neural Networks
Computational Neuroscience seminar by Denis Alevi, PhDc, Berlin Institute of Technology (
Hosted by INCF OCNS Software WG
Thursday 15:00–16:10 London (GMT+0)
Ended
Abstract
Graphics processing units (GPUs) are widely available and have been used with great success to accelerate scientific computing in the last decade. These advances, however, are often not available to researchers interested in simulating spiking neural networks, but lacking the technical knowledge to write the necessary low-level code. Writing low-level code is not necessary when using the popular Brian simulator, which provides a framework to generate efficient CPU code from high-level model definitions in Python. Here, we present Brian2CUDA, an open-source software that extends the Brian simulator with a GPU backend. Our implementation generates efficient code for the numerical integration of neuronal states and for the propagation of synaptic events on GPUs, making use of their massively parallel arithmetic capabilities. We benchmark the performance improvements of our software for several model types and find that it can accelerate simulations by up to three orders of magnitude compared to Brian’s CPU backend. Currently, Brian2CUDA is the only package that supports Brian’s full feature set on GPUs, including arbitrary neuron and synapse models, plasticity rules, and heterogeneous delays. When comparing its performance with Brian2GeNN, another GPU-based backend for the Brian simulator with fewer features, we find that Brian2CUDA gives comparable speedups, while being typically slower for small and faster for large networks. By combining the flexibility of the Brian simulator with the simulation speed of GPUs, Brian2CUDA enables researchers to efficiently simulate spiking neural networks with minimal effort and thereby makes the advancements of GPU computing available to a larger audience of neuroscientists.
Topics
Show 6 more topics
Related seminars
Efficient GPU training of SNNs using approximate RTRL
James Knight, University of Sussex · Recording · Nov 3, 2021
More on gpu and spiking neural networks
Procedural connectivity and other recent advances for efficient spiking neural network simulations
Thomas Nowotny, University of Sussex · Recording · Mar 11, 2021
More with Denis Alevi
All their workUpcoming in Computational Neuroscience
All seminarsInformation Flows Across Scales: Development, Neuroscience, Evolution (Lecture by Prof. TKAČIK)
Oct 14, 2026Gašper TkačikVision transformer models for predicting neural responses: insights and challenges
Oct 14, 2026Arno OnkenA prospective code for value in the serotonin system
Nov 10, 2026Emerson HarkinEndogenous noise may explain brain state transitions
Dec 1, 2026Axel Hutt
Conferences in Computational Neuroscience soon
All conferencesNeurIPS 2026
Dec 6–13, 2026Sydney, Australia; Atlanta, Georgia; Paris, France; and virtual2026 Dendritic Integration Symposium
Dec 10, 2026Online via Zoom; access link supplied after registrationCosyne 2027
Mar 11–16, 2027Montreal, CanadaCNS*2027: Annual Computational Neuroscience Meeting
Jul 10–14, 2027Gran Canaria, Spain; specific venue to be announced