通过冯·诺依曼瓶颈路由大脑流量:并行排序和重构
Routing brain traffic through the von Neumann bottleneck: Parallel sorting and refactoring
摘要:
用于发放神经元网络的通用模拟代码将大部分时间花费在发放已经到达计算节点并且需要被递送到其目标神经元的阶段。这些尖峰信号是由分布在许多计算节点上的源神经元在通信步骤之间的最后一个间隔内发出的,并且相对于它们的目标来说本质上是不规则的。为了找到目标,需要将尖峰发送到三维数据结构,并在途中做出关于目标线程和突触类型的决定。随着网络规模的增长,计算节点从越来越多的不同源神经元接收尖峰,直到计算节点上的每个突触都有唯一的源。在这里,我们分析了这种稀疏性如何出现在实际相关的网络大小范围从十万到十亿个神经元。通过分析生产代码,我们调查了算法更改的机会,以避免间接和分支。每个线程在计算节点上承载相等份额的神经元。在原始算法中,所有线程都搜索所有尖峰以挑选出相关的尖峰。随着网络规模的增加,命中率保持不变,但拒绝的绝对数量增加。另一种算法在线程之间平均分配尖峰,并根据目标线程和突触类型并行对其进行排序。在此之后,每个线程完成单独为其自己的神经元发送尖峰部分。新算法将尖峰传递中的指令数量减半,从而使仿真时间减少了40%。因此,尖峰递送是具有单个同步点的完全可并行化的过程,并且因此非常适合于众核系统。我们的分析表明,进一步的进展需要减少的延迟指令访问内存的经验。
英文摘要:
Generic simulation code for spiking neuronal networks spends the major part of 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 with respect to their targets. For finding the 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. An alternative algorithm equally divides the spikes among the threads and 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. 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 instructions experience in accessing memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。