arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1010.1260cs.DCastro-ph.CO
收藏

基于GPU的球面谐波变换

Spherical harmonic transform with GPUs

Ioan O. Hupca, Joel Falcou, Laura Grigori, Radek Stompor

摘要:

我们描述了一种用于计算适用于图形处理单元(GPU)的逆球谐变换的算法。我们使用CUDA和我们的实现基础上的Fortran 90例程包括在一个公开的并行包,S2HAT。我们把注意力集中在两个主要的顺序步骤中涉及的变换计算,保留了有效的并行框架的原始代码。我们详细介绍了优化技术,用于提高基于CUDA的代码的性能,并将它们与Fortran 90版本中实现的那些进行对比。我们还提出了一个单一的CPU加GPU单元与S2HAT代码运行在一个或4个处理器上的性能比较。特别地,我们发现使用最新一代的GPU,例如NVIDIA GF100(Fermi),可以将球谐变换相对于在一个核心上执行的S2HAT加速多达18倍,并且相对于在4个核心上执行的S2HAT加速多达5.5倍,其中整体性能受到快速傅立叶变换的限制。这里介绍的工作已经在宇宙微波背景模拟和分析的背景下进行。然而,我们希望开发的软件将更普遍的兴趣和适用性。

英文摘要:

We describe an algorithm for computing an inverse spherical harmonic transform suitable for graphic processing units (GPU). We use CUDA and base our implementation on a Fortran90 routine included in a publicly available parallel package, S2HAT. We focus our attention on the two major sequential steps involved in the transforms computation, retaining the efficient parallel framework of the original code. We detail optimization techniques used to enhance the performance of the CUDA-based code and contrast them with those implemented in the Fortran90 version. We also present performance comparisons of a single CPU plus GPU unit with the S2HAT code running on either a single or 4 processors. In particular we find that use of the latest generation of GPUs, such as NVIDIA GF100 (Fermi), can accelerate the spherical harmonic transforms by as much as 18 times with respect to S2HAT executed on one core, and by as much as 5.5 with respect to S2HAT on 4 cores, with the overall performance being limited by the Fast Fourier transforms. The work presented here has been performed in the context of the Cosmic Microwave Background simulations and analysis. However, we expect that the developed software will be of more general interest and applicability.

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

↑