Abstract
Many scientific applications compute using sparse data and store that data in a variety of sparse formats because each format has unique space and performance benefits. Optimizing applications that use sparse data involves translating the sparse data into the chosen format and transforming the computation to iterate over that format. This paper presents a formal definition of sparse tensor formats and an automated approach to synthesize the transformation between formats. This approach is unique in that it supports ordering constraints not supported by other approaches and synthesizes the transformation code in a high-level intermediate representation suitable for applying composable transformations such as loop fusion and temporary storage reduction. We demonstrate that the synthesized code for COO to CSR with optimizations is 2.85x faster than TACO, Intel MKL, and SPARSKIT while the more complex COO to DIA is 1.4x slower than TACO but faster than SPARSKIT and Intel MKL using the geometric average of execution time.
Author supplied keywords
Cite
CITATION STYLE
Popoola, T., Zhao, T., St. George, A., Bhetwal, K., Strout, M. M., Hall, M., & Olschanowsky, C. (2023). Code Synthesis for Sparse Tensor Format Conversion and Optimization. In CGO 2023 - Proceedings of the 21st ACM/IEEE International Symposium on Code Generation and Optimization (pp. 28–40). Association for Computing Machinery, Inc. https://doi.org/10.1145/3579990.3580021
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.