arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2302.08252hep-exphysics.comp-ph
收藏

将LLAMA集成到AdePT中的挑战和机遇

Challenges and opportunities integrating LLAMA into AdePT

Bernhard Manfred Gruber, Guilherme Amadio, Stephan Hageböck

摘要:

粒子输运模拟是高能物理(HEP)的基石,构成了在HEP中执行的计算工作量的实质部分。为了提高模拟吞吐量和能效,近年来一直在探索GPU作为加速器,进一步推动了HPC上GPU的使用。电磁粒子传输加速演示器(AdePT)是一个先进的原型,用于将Geant 4中的电磁簇射仿真卸载到GPU上,并且仍在不断开发和优化。改进内存布局和数据访问对于有效使用现代大规模并行GPU硬件至关重要,有助于将传统的基于CPU的数据结构迁移到AdePT中的GPU。内存访问的低级抽象(LLAMA)是一个C++库,它提供了一个零运行时开销的数据结构抽象层,专注于嵌套结构化数据的多维数组。它提供了一个框架,用于在编译时定义和切换自定义内存映射,以定义数据布局和仪器数据访问,使LLAMA成为解决AdePT中内存相关优化挑战的理想工具。我们的贡献分享了LLAMA在AdePT内部检测数据访问时获得的见解,补充了传统的GPU分析器输出。我们展示了数据结构元素的读/写计数的痕迹以及内存热图。所获得的知识允许后续的数据布局优化。

英文摘要:

Particle transport simulations are a cornerstone of high-energy physics (HEP), constituting a substantial part of the computing workload performed in HEP. To boost the simulation throughput and energy efficiency, GPUs as accelerators have been explored in recent years, further driven by the increasing use of GPUs on HPCs. The Accelerated demonstrator of electromagnetic Particle Transport (AdePT) is an advanced prototype for offloading the simulation of electromagnetic showers in Geant4 to GPUs, and still undergoes continuous development and optimization. Improving memory layout and data access is vital to use modern, massively parallel GPU hardware efficiently, contributing to the challenge of migrating traditional CPU based data structures to GPUs in AdePT. The low-level abstraction of memory access (LLAMA) is a C++ library that provides a zero-runtime-overhead data structure abstraction layer, focusing on multidimensional arrays of nested, structured data. It provides a framework for defining and switching custom memory mappings at compile time to define data layouts and instrument data access, making LLAMA an ideal tool to tackle the memory-related optimization challenges in AdePT. Our contribution shares insights gained with LLAMA when instrumenting data access inside AdePT, complementing traditional GPU profiler outputs. We demonstrate traces of read/write counts to data structure elements as well as memory heatmaps. The acquired knowledge allowed for subsequent data layout optimizations.

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

↑