arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1211.0820hep-latcs.PF
收藏

SSE和AVX指令集的性能

Performance of SSE and AVX Instruction Sets

Hwancheol Jeong, Sunghoon Kim, Weonjong Lee, Seok-Ho Myung

摘要:

SSE(流SIMD扩展)和AVX(高级向量扩展)是由Intel和AMD制造的最新CPU支持的SIMD(单指令多数据流)指令集。这种SIMD编程允许在单个CPU中通过多个核心进行并行处理。基本的算术和数据传输操作,如求和,乘法和平方根可以同时处理。虽然GNU编译器和Intel编译器等流行的编译器提供自动SIMD优化选项,但通过手动SIMD编程并进行适当的优化(数据打包、数据重用和异步数据传输),可以获得更好的性能。特别是,向量和矩阵的线性代数运算可以很容易地通过SIMD编程来优化。格点规范理论的典型计算是由规范链矩阵和费米子矢量的线性代数运算组成的,因此可以采用手工SIMD编程来提高计算性能。

英文摘要:

SSE (streaming SIMD extensions) and AVX (advanced vector extensions) are SIMD (single instruction multiple data streams) instruction sets supported by recent CPUs manufactured in Intel and AMD. This SIMD programming allows parallel processing by multiple cores in a single CPU. Basic arithmetic and data transfer operations such as sum, multiplication and square root can be processed simultaneously. Although popular compilers such as GNU compilers and Intel compilers provide automatic SIMD optimization options, one can obtain better performance by a manual SIMD programming with proper optimization: data packing, data reuse and asynchronous data transfer. In particular, linear algebraic operations of vectors and matrices can be easily optimized by the SIMD programming. Typical calculations in lattice gauge theory are composed of linear algebraic operations of gauge link matrices and fermion vectors, and so can adopt the manual SIMD programming to improve the performance.

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

↑