Fusion of Parallel Array Operations. Kristensen, M. R., Lund, S. A., Blum, T., & Avery, J. In Proceedings of the 2016 International Conference on Parallel Architectures and Compilation, of PACT '16, pages 71–85, New York, NY, USA, 2016. ACM.
Fusion of Parallel Array Operations [link]Paper  doi  abstract   bibtex   
We address the problem of fusing array operations based on criteria such as shape compatibility, data reuse, and minimizing for data reuse, the fusion problem has been formulated as a static weighted graph partitioning problem (known as the Weighted Loop Fusion problem). We show that this scheme cannot accurately track data reuse between multiple independent loops, since it overestimates total data reuse of certain cases. Our formulation in terms of partitions allows use of realistic cost functions that can track resource usage accurately. We give correctness proofs, and prove that WSP can maximize data reuse in programs exactly, in contrast to prior work. For the exact optimal solution, which is NP-hard to find, we present a branch-and-bound algorithm together with a polynomial-time preconditioner that reduces the problem size significantly in practice. We further present a polynomial-time greedy approximation that is fast enough to use for JIT-compilation and gives near-optimal results in practice. All algorithms have been implemented in the automatic parallelization platform Bohrium, run on a set of benchmarks, and compared to existing methods from the literature.
@inproceedings{kristensen_fusion_2016,
	address = {New York, NY, USA},
	series = {{PACT} '16},
	title = {Fusion of {Parallel} {Array} {Operations}},
	isbn = {978-1-4503-4121-9},
	url = {http://doi.acm.org/10.1145/2967938.2967945},
	doi = {10.1145/2967938.2967945},
	abstract = {We address the problem of fusing array operations based on criteria such as shape compatibility, data reuse, and minimizing for data reuse, the fusion problem has been formulated as a static weighted graph partitioning problem (known as the Weighted Loop Fusion problem). We show that this scheme cannot accurately track data reuse between multiple independent loops, since it overestimates total data reuse of certain cases. Our formulation in terms of partitions allows use of realistic cost functions that can track resource usage accurately. We give correctness proofs, and prove that WSP can maximize data reuse in programs exactly, in contrast to prior work. For the exact optimal solution, which is NP-hard to find, we present a branch-and-bound algorithm together with a polynomial-time preconditioner that reduces the problem size significantly in practice. We further present a polynomial-time greedy approximation that is fast enough to use for JIT-compilation and gives near-optimal results in practice. All algorithms have been implemented in the automatic parallelization platform Bohrium, run on a set of benchmarks, and compared to existing methods from the literature.},
	urldate = {2018-01-08},
	booktitle = {Proceedings of the 2016 {International} {Conference} on {Parallel} {Architectures} and {Compilation}},
	publisher = {ACM},
	author = {Kristensen, Mads R.B. and Lund, Simon A.F. and Blum, Troels and Avery, James},
	year = {2016},
	keywords = {bohrium, high-productivity, hpc, numpy, python},
	pages = {71--85}
}

Downloads: 0