基于LLVM的SIMD代码生成优化分析
A Case Study of LLVM-Based Analysis for Optimizing SIMD Code Generation
摘要:
本文提出了一种使用基于LLVM的工具来调整针对新ARM A64 FX处理器的DCA++(动态集群逼近)应用程序的方法。目标是描述新架构所需的变化,并生成针对新的可扩展向量扩展指令集的高效单指令/多数据(SIMD)指令。在手动调优过程中,作者使用LLVM工具通过使用OpenMP SIMD来改进代码并行化,重构代码并应用转换以启用SIMD优化,并确保使用正确的库来实现最佳性能。通过应用这些代码更改,代码速度提高了1.98倍,在A64 FX处理器上实现了78 GFlops。作者声称将OpenMP Advisor工具中的部分工作自动化,该工具构建在现有和新引入的LLVM工具之上。
英文摘要:
This paper presents a methodology for using LLVM-based tools to tune the DCA++ (dynamical clusterapproximation) application that targets the new ARM A64FX processor. The goal is to describethe changes required for the new architecture and generate efficient single instruction/multiple data(SIMD) instructions that target the new Scalable Vector Extension instruction set. During manualtuning, the authors used the LLVM tools to improve code parallelization by using OpenMP SIMD,refactored the code and applied transformation that enabled SIMD optimizations, and ensured thatthe correct libraries were used to achieve optimal performance. By applying these code changes, codespeed was increased by 1.98X and 78 GFlops were achieved on the A64FX processor. The authorsaim to automatize parts of the efforts in the OpenMP Advisor tool, which is built on top of existingand newly introduced LLVM tooling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。