Artigo Revisado por pares

Improving SIMD Parallelism via Dynamic Binary Translation

2018; Association for Computing Machinery; Volume: 17; Issue: 3 Linguagem: Inglês

10.1145/3173456

ISSN

1558-3465

Autores

Ding‐Yong Hong, Yuping Liu, Sheng‐Yu Fu, Jan‐Jan Wu, Wei‐Chung Hsu,

Tópico(s)

Interconnection Networks and Systems

Resumo

Recent trends in SIMD architecture have tended toward longer vector lengths, and more enhanced SIMD features have been introduced in newer vector instruction sets. However, legacy or proprietary applications compiled with short-SIMD ISA cannot benefit from the long-SIMD architecture that supports improved parallelism and enhanced vector primitives, resulting in only a small fraction of potential peak performance. This article presents a dynamic binary translation technique that enables short-SIMD binaries to exploit benefits of new SIMD architectures by rewriting short-SIMD loop code. We propose a general approach that translates loops consisting of short-SIMD instructions to machine-independent IR, conducts SIMD loop transformation/optimization at this IR level, and finally translates to long-SIMD instructions. Two solutions are presented to enforce SIMD load/store alignment, one for the problem caused by the binary translator’s internal translation condition and one general approach using dynamic loop peeling optimization. Benchmark results show that average speedups of 1.51× and 2.48× are achieved for an ARM NEON to x86 AVX2 and x86 AVX-512 loop transformation, respectively.

Referência(s)