Routing Brain Traffic Through the Von Neumann Bottleneck: Parallel Sorting and Refactoring
Frontiers in Neuroinformatics, vol. 15, pp. 785068
Abstract
Generic simulation code for spiking neuronal networks spends the major part of the time in the phase where spikes have arrived at a compute node and need to be delivered to their target neurons. These spikes were emitted over the last interval between communication steps by source neurons distributed across many compute nodes and are inherently irregular and unsorted with respect to their targets. For finding those targets, the spikes need to be dispatched to a three-dimensional data structure with decisions on target thread and synapse type to be made on the way. With growing network size, a compute node receives spikes from an increasing number of different source neurons until in the limit each synapse on the compute node has a unique source. Here, we show analytically how this sparsity emerges over the practically relevant range of network sizes from a hundred thousand to a billion neurons. By profiling a production code we investigate opportunities for algorithmic changes to avoid indirections and branching. Every thread hosts an equal share of the neurons on a compute node. In the original algorithm, all threads search through all spikes to pick out the relevant ones. With increasing network size, the fraction of hits remains invariant but the absolute number of rejections grows. Our new alternative algorithm equally divides the spikes among the threads and immediately sorts them in parallel according to target thread and synapse type. After this, every thread completes delivery solely of the section of spikes for its own neurons. Independent of the number of threads, all spikes are looked at only two times. The new algorithm halves the number of instructions in spike delivery which leads to a reduction of simulation time of up to 40 %. Thus, spike delivery is a fully parallelizable process with a single synchronization point and thereby well suited for many-core systems. Our analysis indicates that further progress requires a reduction of the latency that the instructions experience in accessing memory. The study provides the foundation for the exploration of methods of latency hiding like software pipelining and software-induced prefetching.
Authors 6
-
Forschungszentrum Jülich · Jülich Aachen Research Alliance · RWTH Aachen University
Affiliation as printed
Institute of Neuroscience and Medicine (INM-6) and Institute for Advanced Simulation (IAS-6) and JARA-Institute Brain Structure-Function Relationships (INM-10), Jülich Research Centre, Jülich, Germany
RWTH Aachen University, Aachen, Germany
Institute of Neuroscience and Medicine (INM-6) and Institute for Advanced Simulation (IAS-6) and JARA-Institute Brain Structure-Function Relationships (INM-10), Jülich Research Centre, Germany
RWTH Aachen University, Germany
-
Affiliation as printed
Department of Physiology, University of Bern, Bern, Switzerland
Department of Physiology, University of Bern, Switzerland
-
Forschungszentrum Jülich · Jülich Supercomputing Centre
Affiliation as printed
Jülich Supercomputing Centre, Jülich Research Centre, Jülich, Germany
Jülich Supercomputing Centre, Jülich Research Centre, Germany
-
RIKEN Center for Computational Science
Affiliation as printed
RIKEN Center for Computational Science, Kobe, Japan
RIKEN Center for Computational Science, Japan
-
Markus Diesmann Aachen Department of Physics Faculty 1 Department of Psychiatry, Psychotherapy and Psychosomatics Medical Faculty
Forschungszentrum Jülich · Jülich Aachen Research Alliance · RWTH Aachen University
Affiliation as printed
Department of Physics, Faculty 1, RWTH Aachen University, Aachen, Germany
Department of Psychiatry, Psychotherapy and Psychosomatics, Medical Faculty, RWTH Aachen University, Aachen, Germany
Institute of Neuroscience and Medicine (INM-6) and Institute for Advanced Simulation (IAS-6) and JARA-Institute Brain Structure-Function Relationships (INM-10), Jülich Research Centre, Jülich, Germany
Department of Physics, Faculty 1, RWTH Aachen University, Germany
Department of Psychiatry, Psychotherapy and Psychosomatics, Medical Faculty, RWTH Aachen University, Germany
Institute of Neuroscience and Medicine (INM-6) and Institute for Advanced Simulation (IAS-6) and JARA-Institute Brain Structure-Function Relationships (INM-10), Jülich Research Centre, Germany
-
Norwegian University of Life Sciences
Affiliation as printed
Faculty of Science and Technology, Norwegian University of Life Sciences, Ås, Norway
Faculty of Science and Technology, Norwegian University of Life Sciences, Norway
Cited by 19 stored of 18
19 results
No patents citing this paper on Lens.org (checked 2026-10-06).