{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T04:31:27Z","timestamp":1789101087351,"version":"build-2803163510"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2015,6,1]],"date-time":"2015-06-01T00:00:00Z","timestamp":1433116800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"NSF","award":["CCF 0846121"],"award-info":[{"award-number":["CCF 0846121"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Math. Softw."],"published-print":{"date-parts":[[2015,6]]},"abstract":"<jats:p>Scientific programmers often turn to vendor-tuned Basic Linear Algebra Subprograms (BLAS) to obtain portable high performance. However, many numerical algorithms require several BLAS calls in sequence, and those successive calls do not achieve optimal performance. The entire sequence needs to be optimized in concert. Instead of vendor-tuned BLAS, a programmer could start with source code in Fortran or C (e.g., based on the Netlib BLAS) and use a state-of-the-art optimizing compiler. However, our experiments show that optimizing compilers often attain only one-quarter of the performance of hand-optimized code. In this article, we present a domain-specific compiler for matrix kernels, the Build to Order BLAS (BTO), that reliably achieves high performance using a scalable search algorithm for choosing the best combination of loop fusion, array contraction, and multithreading for data parallelism. The BTO compiler generates code that is between 16% slower and 39% faster than hand-optimized code.<\/jats:p>","DOI":"10.1145\/2629698","type":"journal-article","created":{"date-parts":[[2015,6,2]],"date-time":"2015-06-02T15:13:25Z","timestamp":1433258005000},"page":"1-27","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":8,"title":["Reliable Generation of High-Performance Matrix Algebra"],"prefix":"10.1145","volume":"41","author":[{"given":"Thomas","family":"Nelson","sequence":"first","affiliation":[{"name":"University of Colorado"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Geoffrey","family":"Belter","sequence":"additional","affiliation":[{"name":"University of Colorado"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jeremy G.","family":"Siek","sequence":"additional","affiliation":[{"name":"Indiana University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Elizabeth","family":"Jessup","sequence":"additional","affiliation":[{"name":"University of Colorado"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Boyana","family":"Norris","sequence":"additional","affiliation":[{"name":"University of Oregon"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2015,6]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the 16th International Workshop on Languages and Compilers for Parallel Computing. 162--176","author":"Almasi G.","unstructured":"G. Almasi, L. D. Rose, J. Moreira, and D. Padua. 2003. Programming for locality and parallelism with hierarchically tiled arrays. In Proceedings of the 16th International Workshop on Languages and Compilers for Parallel Computing. 162--176."},{"key":"e_1_2_1_2_1","unstructured":"S. Amarasinghe D. Campbell W. Carlson et al. 2009. Exascale software study: Software challenges in extreme scale systems. Tech. Rep. DARPA IPTO Air Force Research Labs."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/331532.331600"},{"key":"e_1_2_1_4_1","first-page":"2136","article-title":"Can search algorithms save large-scale automatic performance tuning&quest; Procedia","volume":"4","author":"Balaprakash P.","year":"2011","unstructured":"P. Balaprakash, S. Wild, and P. Hovland. 2011. Can search algorithms save large-scale automatic performance tuning&quest; Procedia Comput. Sci. CS 4, 2136--2145.","journal-title":"Comput. Sci. CS"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2004.840311"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1654059.1654119"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the 5th International Workshop on Automatic Performance Tuning (iWAPT'10)","author":"Belter G.","unstructured":"G. Belter, J. G. Siek, I. Karlin, and E. R. Jessup. 2010. Automatic generation of tiled and parallel linear algebra routines. In Proceedings of the 5th International Workshop on Automatic Performance Tuning (iWAPT'10), 1--15."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/263580.263662"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/567806.567807"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1854273.1854317"},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'08)","author":"Bondhugula U.","unstructured":"U. Bondhugula, A. Hartono, J. Ramanujam, and P. Sadayappan. 2008. Pluto: A practical and fully automatic polyhedral program optimization system. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'08), 101--113."},{"key":"e_1_2_1_12_1","volume-title":"Tech. Rep. 08-897, Department of Computer Science","author":"Chen C.","year":"2008","unstructured":"C. Chen, J. Chame, and M. Hall. 2008. CHiLL: A framework for composing high-level loop transformations. Tech. Rep. 08-897, Department of Computer Science, University of Southern California."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1109\/99.660313"},{"key":"e_1_2_1_14_1","volume-title":"Tech. Rep. 2000-22, Ecole Normale Superieure de Lyon.","author":"Darte A.","year":"2000","unstructured":"A. Darte and G. Huard. 2000. Loop shifting for loop parallelization. Tech. Rep. 2000-22, Ecole Normale Superieure de Lyon."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/77626.79170"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/42288.42291"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1377603.1377607"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/504210.504213"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1109\/IPDPS.2009.5161004"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1356052.1356055"},{"key":"e_1_2_1_21_1","unstructured":"Intel. 2012. Intel Composer. http:\/\/software.intel.com\/en-us\/articles\/intel-compilers."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/1964218.1964226"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jocs.2011.03.002"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/355841.355847"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1177\/1094342013492178"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/258492.258520"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.5555\/522098"},{"key":"e_1_2_1_28_1","volume-title":"Pthreads library interface. Tech. rep","author":"Mueller F.","unstructured":"F. Mueller. 1999. Pthreads library interface. Tech. rep., Florida State University."},{"key":"e_1_2_1_29_1","unstructured":"Netlib BLAS. 2013. Netlib BLAS. http:\/\/www.netlib.org\/blas\/."},{"key":"e_1_2_1_30_1","unstructured":"Portland Group. 2012. Portland group compiler. http:\/\/www.pgroup.com."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/SC.2010.14"},{"key":"e_1_2_1_32_1","volume-title":"SPIRAL: Code generation for DSP transforms. Proc","author":"Pueschel M.","year":"2005","unstructured":"M. Pueschel, J. M. F. Moura, J. Johnson, D. Padua, M. Veloso, B. Singer, J. Xiong, F. Franchetti, A. Gacic, Y. Voronenko, K. Chen, R. W. Johnson, and N. Rizzolo. 2005. SPIRAL: Code generation for DSP transforms. Proc. IEEE, (special issue on Program Generation, Optimization, and Adaptation ) 93, 2, 232--275."},{"key":"e_1_2_1_33_1","volume-title":"Tech. Rep. TR03-419, Department of Computer Science","author":"Qasem A.","year":"2003","unstructured":"A. Qasem, G. Jin, and J. Mellor-Crummey. 2003. Improving performance with integrated program transformations. Tech. Rep. TR03-419, Department of Computer Science, Rice University. October."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s11227-006-7957-2"},{"key":"e_1_2_1_36_1","volume-title":"Proceedings of the Workshop on Performance Optimization for High-Level Languages and Libraries (POHLL'08)","author":"Siek J. G.","unstructured":"J. G. Siek, I. Karlin, and E. R. Jessup. 2008. Build to order linear algebra kernels. In Proceedings of the Workshop on Performance Optimization for High-Level Languages and Libraries (POHLL'08)."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/IPDPS.2009.5161054"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2382585.2382587"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1177\/1094342004041293"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.5555\/509058.509096"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-89740-8_24"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/IPDPS.2007.370637"},{"key":"e_1_2_1_43_1","volume-title":"Tech. Rep. UCRL-TR-217808","author":"Zhao Y.","year":"2005","unstructured":"Y. Zhao, Q. Yi, K. Kennedy, D. Quinlan, and R. Vuduc. 2005. Parameterizing loop fusion for automated empirical tuning. Tech. Rep. UCRL-TR-217808, Center for Applied Scientific Computing, Lawrence Livermore National Laboratory."}],"container-title":["ACM Transactions on Mathematical Software"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2629698","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2629698","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T06:13:31Z","timestamp":1750227211000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2629698"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2015,6]]},"references-count":42,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2015,6]]}},"alternative-id":["10.1145\/2629698"],"URL":"https:\/\/doi.org\/10.1145\/2629698","relation":{},"ISSN":["0098-3500","1557-7295"],"issn-type":[{"value":"0098-3500","type":"print"},{"value":"1557-7295","type":"electronic"}],"subject":[],"published":{"date-parts":[[2015,6]]},"assertion":[{"value":"2012-10-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-05-01","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2015-06-01","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}