引力微透镜的计算进展:CPU、GPU和并行大数据代码的比较
Computational advances in gravitational microlensing: a comparison of CPU, GPU, and parallel, large data codes
摘要:
为了评估未来在高光学深度的引力微透镜计算的进展将如何依赖于硬件和软件解决方案,我们将在图形处理单元(GPU)上实现的直接逆射线拍摄代码与单核CPU上广泛使用的分层树代码以及最近实现的适用于基于CPU的集群超级计算机的并行树代码进行了比较。我们检查树代码的准确性,通过比较与一个直接的代码在更广泛的参数空间范围比以前已经可行。我们证明,所有三个代码呈现可比的精度,和方法的选择取决于有关的规模和性质的微透镜问题正在调查的考虑。在目前的硬件上,单核CPU树代码和GPU直接代码的处理速度几乎没有差异,但是最近单核CPU速度的平台意味着现有的树代码不再能够利用摩尔定律在处理速度上的增长。相反,我们预计在未来几年内GPU的能力将快速增长,这对直接代码有利。我们认为,在天体物理计算的其他领域的进展可能会受益于通过使用“蛮力”算法过渡到GPU,而不是试图将当前最佳解决方案直接移植到GPU语言-对于某些类别的问题,GPU上的简单实现可能已经不比优化的单核CPU版本差。
英文摘要:
To assess how future progress in gravitational microlensing computation at high optical depth will rely on both hardware and software solutions, we compare a direct inverse ray-shooting code implemented on a graphics processing unit (GPU) with both a widely-used hierarchical tree code on a single-core CPU, and a recent implementation of a parallel tree code suitable for a CPU-based cluster supercomputer. We examine the accuracy of the tree codes through comparison with a direct code over a much wider range of parameter space than has been feasible before. We demonstrate that all three codes present comparable accuracy, and choice of approach depends on considerations relating to the scale and nature of the microlensing problem under investigation. On current hardware, there is little difference in the processing speed of the single-core CPU tree code and the GPU direct code, however the recent plateau in single-core CPU speeds means the existing tree code is no longer able to take advantage of Moore's law-like increases in processing speed. Instead, we anticipate a rapid increase in GPU capabilities in the next few years, which is advantageous to the direct code. We suggest that progress in other areas of astrophysical computation may benefit from a transition to GPUs through the use of "brute force" algorithms, rather than attempting to port the current best solution directly to a GPU language -- for certain classes of problems, the simple implementation on GPUs may already be no worse than an optimised single-core CPU version.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。