HPTT: A High-Performance Tensor Transposition C++ Library

Paul Springer, Tong Su, Paolo Bientinesi
4/14/2017
53 citations
cs.MScs.DCcs.PF

Official code: springer13/hptt (206 stars, C++, BSD-3-Clause, last commit 2023-05-13).

Abstract

Recently we presented TTC, a domain-specific compiler for tensor transpositions. Despite the fact that the performance of the generated code is nearly optimal, due to its offline nature, TTC cannot be utilized in all the application codes in which the tensor sizes and the necessary tensor permutations are determined at runtime.

Show full abstract

To overcome this limitation, we introduce the open-source C++ library High-Performance Tensor Transposition (HPTT). Similar to TTC, HPTT incorporates optimizations such as blocking, multi-threading, and explicit vectorization; furthermore it decomposes any transposition into multiple loops around a so called micro-kernel. This modular design---inspired by BLIS---makes HPTT easy to port to different architectures, by only replacing the hand-vectorized micro-kernel (e.g., a 4x4 transpose). HPTT also offers an optional autotuning framework---guided by a performance model---that explores a vast search space of implementations at runtime (similar to FFTW). Across a wide range of different tensor transpositions and architectures (e.g., Intel Ivy Bridge, Intel Knights Landing, ARMv7, IBM Power7), HPTT attains a bandwidth comparable to that of SAXPY, and yields remarkable speedups over Eigen's tensor transposition implementation. Most importantly, the integration of HPTT into the Cyclops Tensor Framework (CTF) improves the overall performance of tensor contractions by up to 3.1x.

View on arXivView PDF

Code Implementations(1)

springer13/hpttOfficial100%
BSD-3-Clause

High-Performance Tensor Transpose library

20654C++, PythonApr 5, 20173 years agoBSD-3-Clause
high-performance-computingmultidimensional-arraystensortensor-transpositiontensors+1 more

Similar Papers

Cite this paper

@article{springer2017hptt,
  title  = {HPTT: A High-Performance Tensor Transposition C++ Library},
  author = {Paul Springer and Tong Su and Paolo Bientinesi},
  year   = {2017},
  eprint = {1704.04374},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1704.04374}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1704.04374.svg)](https://codeofpaper.com/paper/1704.04374)

Discussion