arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.01313cs.DCcs.PF
收藏

cuPSO:粒子群优化算法的GPU并行化

cuPSO: GPU Parallelization for Particle Swarm Optimization Algorithms

Chuan-Chi Wang, Chun-Yen Ho, Chia-Heng Tu, Shih-Hao Hung

AI总结:

本文提出cuPSO算法,利用原子函数和异步线程组缓解GPU上粒子群优化中归约方法的内存访问与同步开销,在Nvidia GPU上比CPU串行快约200倍,比并行归约方法快2.2倍。

摘要:

粒子群优化(PSO)是一种用于求解优化问题的随机技术。已有研究尝试利用GPU(图形处理单元)上的大规模线程来缩短基于PSO算法的计算时间,其中线程组被组织起来计算粒子的信息,并将为粒子计算得到的输出进行聚合与分析,以寻找最优解。特别是,基于归约的方法被视为处理所计算粒子信息的数据聚合与分析的常见方法。然而,根据我们的分析,基于归约的方法会遭受过多的内存访问和线程同步开销。在本文中,我们提出了一种利用原子函数来缓解上述开销的新算法。线程组内的线程将计算结果有条件地原子更新到组内数据队列中,从而避免了并行归约操作中频繁的内存访问。此外,我们开发了该算法的增强版本,以缓解线程组之间的同步屏障,其实现方式是允许线程组异步运行,并在必要时偶尔更新到受锁保护的全局变量。我们的实验结果表明,我们提出的算法在Nvidia GPU上运行比由Intel Xeon CPU执行的串行版本快约200倍。此外,该新算法的性能比最先进的方法(并行归约方法)高出2.2倍。

英文摘要:

Particle Swarm Optimization (PSO) is a stochastic technique for solving the optimization problem. Attempts have been made to shorten the computation times of PSO based algorithms with massive threads on GPUs (graphic processing units), where thread groups are formed to calculate the information of particles and the computed outputs for the particles are aggregated and analyzed to find the best solution. In particular, the reduction-based method is considered as a common approach to handle the data aggregation and analysis for the calculated particle information. Nevertheless, based on our analysis, the reduction-based method would suffer from excessive memory accesses and thread synchronization overheads. In this paper, we propose a novel algorithm to alleviate the above overheads with the atomic functions. The threads within a thread group update the calculated results atomically to the intra-group data queue conditionally, which prevents the frequent accesses to the memory as done by the parallel reduction operations. Furthermore, we develop an enhanced version of the algorithm to alleviate the synchronization barrier among the thread groups, which is achieved by allowing the thread groups to run asynchronously and updating to the global, lock-protected variables occasionally if necessary. Our experimental results show that our proposed algorithm running on the Nvidia GPU is about 200 times faster than the serial version executed by the Intel Xeon CPU. Moreover, the novel algorithm outperforms the state-of-the-art method (the parallel reduction approach) by a factor of 2.2.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑