{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T16:25:04Z","timestamp":1787329504001,"version":"build-2736575974"},"reference-count":65,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"1","funder":[{"name":"BMBF","award":["16ME0647K"],"award-info":[{"award-number":["16ME0647K"]}]},{"name":"NHR-Verein"},{"name":"NHR Graduate School of National High Performance Computing"},{"name":"Erlangen National High Performance Computing Center of FAU"},{"DOI":"10.13039\/501100022273","name":"Gauss Centre for Supercomputing","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100022273","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/501100001659","name":"Deutsche Forschungsgemeinschaft","doi-asserted-by":"publisher","award":["440719683"],"award-info":[{"award-number":["440719683"]}],"id":[{"id":"10.13039\/501100001659","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Sci. Comput."],"published-print":{"date-parts":[[2025,2,28]]},"abstract":"<jats:p>Abstract.<\/jats:p>\n                  <jats:p>This paper introduces a code generator designed for extreme-scalable, matrix-free finite element operators on hybrid tetrahedral grids.\u00a0It optimizes the local evaluation of bilinear forms through various techniques including tabulation, relocation of loop invariants, and interelement vectorization\u2014implemented as transformations of an abstract syntax tree. A key contribution is the generator\u2019s ability to optimize not only the local assembly, but also the loop over the underlying grid. To that end, the developed \u201ccubes\u201d loop pattern leverages local structure resulting from grid refinement and significantly enhances arithmetic intensity. Its effectiveness is established during a memory and layer condition analysis. The paper demonstrates the generator\u2019s capabilities through a comprehensive, educational cycle of performance analysis, bottleneck identification, and emission of dedicated optimizations. For three differential operators ([Formula: see text], [Formula: see text], [Formula: see text]), the set of most effective optimizations is determined from a larger pool. They result in matrix-free operators with a kernel throughput of 1.3 to 2.1 GDoF\/s, achieving up to 62% peak performance on a 36-core Intel Ice Lake socket. We make performance comparisons with a sparse matrix-vector multiplication and operators generated by the Firedrake project at increasing levels of refinement. Finally, the solution of the curl-curl problem with more than a trillion ([Formula: see text]) degrees of freedom on 21,504 processes in less than 50 s showcases the generated operators\u2019 performance and extreme scalability as part of a full multigrid solver.<\/jats:p>","DOI":"10.1137\/24m1653756","type":"journal-article","created":{"date-parts":[[2025,1,29]],"date-time":"2025-01-29T03:32:47Z","timestamp":1738121567000},"page":"B131-B159","source":"Crossref","is-referenced-by-count":6,"title":["Code Generation and Performance Engineering for Matrix-Free Finite Element Methods on Hybrid Tetrahedral Grids"],"prefix":"10.1137","volume":"47","author":[{"given":"Fabian","family":"B\u00f6hm","sequence":"first","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany, and Erlangen National High Performance Computing Center (EHR@FAU), Erlangen, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-9397-2883","authenticated-orcid":true,"given":"Daniel","family":"Bauer","sequence":"additional","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nils","family":"Kohl","sequence":"additional","affiliation":[{"name":"Department of Earth and Environmental Sciences, Ludwig-Maximilians-Universit\u00e4t M\u00fcnchen (LMU), Munich, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4548-8727","authenticated-orcid":true,"given":"Christie L.","family":"Alappat","sequence":"additional","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8340-4849","authenticated-orcid":true,"given":"Dominik","family":"Th\u00f6nnes","sequence":"additional","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2942-8484","authenticated-orcid":true,"given":"Marcus","family":"Mohr","sequence":"additional","affiliation":[{"name":"Department of Earth and Environmental Sciences, Ludwig-Maximilians-Universit\u00e4t M\u00fcnchen (LMU), Munich, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Harald","family":"K\u00f6stler","sequence":"additional","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ulrich","family":"R\u00fcde","sequence":"additional","affiliation":[{"name":"Friedrich-Alexander-Universit\u00e4t Erlangen-N\u00fcrnberg (FAU), Erlangen, Germany, and Centre Europ\u00e9en de Recherche et de Formation Avanc\u00e9e en Calcul Scientifique (CERFACS), Toulouse, France."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2025,1,29]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","DOI":"10.1016\/S0021-9991(03)00194-3"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1137\/11082539X"},{"key":"ref3","volume":"3","author":"Aln\u00e6s M.","year":"2015","journal-title":"Arch. Numer. Softw."},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1145\/2566630"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1016\/j.camwa.2020.02.022"},{"key":"ref6","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-47956-5_8"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1137\/100798806"},{"key":"ref8","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-1986-6_8"},{"key":"ref9","doi-asserted-by":"publisher","DOI":"10.1007\/s00607-008-0004-9"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1007\/s00607-008-0003-x"},{"key":"ref11","doi-asserted-by":"crossref","unstructured":"M. Bauer, J. H\u00f6tzer, D. Ernst, J. Hammer, M. Seiz, H. Hierl, J. H\u00f6nig, H. K\u00f6stler, G. Wellein, B. Nestler, and U. R\u00fcde, Code generation for massively parallel phase-field simulations, in SC \u201919: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, 2019, pp. 1\u201332, https:\/\/doi.org\/10.1145\/3295500.3356186.","DOI":"10.1145\/3295500.3356186"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-47956-5_19"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.1002\/nla.382"},{"key":"ref14","doi-asserted-by":"publisher","DOI":"10.1007\/BF02238487"},{"key":"ref15","doi-asserted-by":"publisher","DOI":"10.1007\/978-0-387-75934-0"},{"key":"ref16","doi-asserted-by":"publisher","DOI":"10.1007\/s10915-010-9396-8"},{"key":"ref17","doi-asserted-by":"publisher","DOI":"10.1002\/nla.2407"},{"key":"ref18","doi-asserted-by":"publisher","DOI":"10.1016\/j.compfluid.2010.08.012"},{"key":"ref19","doi-asserted-by":"publisher","DOI":"10.1002\/cnm.1630040303"},{"key":"ref20","first-page":"145","volume":"2","author":"Carey G. F.","year":"1986","journal-title":"Int. J. Numer. Methods Biomed. Eng."},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.1137\/1.9780898719208"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-47789-6_66"},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1016\/j.jocs.2016.06.006"},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.1137\/130941353"},{"key":"ref25","doi-asserted-by":"publisher","DOI":"10.1201\/EBK1439811924"},{"key":"ref26","volume-title":"Firedrake User Manual","author":"Ham D. A.","year":"2023"},{"key":"ref27","doi-asserted-by":"crossref","unstructured":"J. Hammer, J. Eitzinger, G. Hager, and G. Wellein, Kerncraft: A Tool for Analytic Performance Modeling of Loop Kernels, Springer, Berlin, 2017, pp. 1\u201322, https:\/\/doi.org\/10.1007\/978-3-319-56702-0_1.","DOI":"10.1007\/978-3-319-56702-0_1"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1137\/S0036142997326203"},{"key":"ref29","unstructured":"M. Homolya, R. C. Kirby, and D. A. Ham, Exposing and exploiting structure: Optimal Code Generation for High-Order Finite Element Methods, 2017, https:\/\/doi.org\/10.48550\/arXiv.1711.02473."},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.1137\/17M1130642"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2006.875712"},{"key":"ref32","doi-asserted-by":"publisher","DOI":"10.1016\/0045-7825(86)90025-3"},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1145\/3424144"},{"key":"ref34","doi-asserted-by":"publisher","DOI":"10.1007\/s00211-010-0327-2"},{"key":"ref35","doi-asserted-by":"publisher","DOI":"10.1145\/1163641.1163644"},{"key":"ref36","doi-asserted-by":"publisher","DOI":"10.1137\/17M1133208"},{"key":"ref37","doi-asserted-by":"publisher","DOI":"10.1007\/s00211-011-0431-y"},{"key":"ref38","doi-asserted-by":"publisher","DOI":"10.1080\/17445760.2023.2266875"},{"key":"ref39","doi-asserted-by":"publisher","DOI":"10.1137\/21M1402510"},{"key":"ref40","doi-asserted-by":"publisher","DOI":"10.1137\/20M1376005"},{"key":"ref41","doi-asserted-by":"publisher","DOI":"10.1080\/17445760.2018.1506453"},{"key":"ref42","doi-asserted-by":"publisher","DOI":"10.1016\/j.compfluid.2012.04.012"},{"key":"ref43","doi-asserted-by":"publisher","DOI":"10.1145\/3325864"},{"key":"ref44","doi-asserted-by":"publisher","DOI":"10.1137\/16M110455X"},{"key":"ref45","unstructured":"Pilot Operation SuperMUC-NG Phase 2, Leibniz-Rechenzentrum, https:\/\/doku.lrz.de\/pilot-operation-supermuc-ng-phase-2-403079197.html."},{"key":"ref46","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-47956-5_14"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1145\/3054944"},{"key":"ref48","doi-asserted-by":"crossref","unstructured":"D. May, J. Brown, and L. le pourhiet, PTatin3D: High-performance methods for long-term lithospheric dynamics, in SC \u201914: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, 2014, pp. 274\u2013284, https:\/\/doi.org\/10.1109\/SC.2014.28.","DOI":"10.1109\/SC.2014.28"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1016\/j.cma.2015.03.014"},{"key":"ref50","doi-asserted-by":"publisher","DOI":"10.7717\/peerj-cs.103"},{"key":"ref51","doi-asserted-by":"publisher","DOI":"10.1137\/19M1246523"},{"key":"ref52","unstructured":"S. M\u00fcthing, M. Piatkowski, and P. Bastian, High-performance implementation of matrix-free high-order discontinuous Galerkin methods, https:\/\/doi.org\/10.48550\/arXiv.1711.10885, 2017."},{"key":"ref53","doi-asserted-by":"publisher","DOI":"10.1007\/BF01396415"},{"key":"ref54","unstructured":"Fritz Parallel Cluster, NHR@FAU, https:\/\/hpc.fau.de\/systems-services\/documentation-instructions\/clusters\/fritz-cluster."},{"key":"ref55","doi-asserted-by":"crossref","unstructured":"J. Rudi, A. C. I. Malossi, T. Isaac, G. Stadler, M. Gurnis, P. W. J. Staar, Y. Ineichen, C. Bekas, A. Curioni, and O. Ghattas, An extreme-scale implicit solver for complex PDEs: Highly heterogeneous flow in earth\u2019s mantle, in SC \u201915: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, 2015, pp. 1\u201312, https:\/\/doi.org\/10.1145\/2807591.2807675.","DOI":"10.1145\/2807591.2807675"},{"key":"ref56","doi-asserted-by":"publisher","DOI":"10.1145\/2491491.2491496"},{"key":"ref57","unstructured":"N. Schl\u00f6mer, N. Papior, D. Arnold, J. Blechta, and R. Zetter, nschloe\/quadpy:None (v0.16.10), Zenodo, https:\/\/doi.org\/10.5281\/zenodo.5541216."},{"key":"ref58","doi-asserted-by":"crossref","unstructured":"H. Stengel, J. Treibig, G. Hager, and G. Wellein, Quantifying performance bottlenecks of stencil computations using the execution-cache-memory model, in ICS \u201915: Proceedings of the 29th ACM on International Conference on Supercomputing, 2015, pp. 207\u2013216, https:\/\/doi.org\/10.1145\/2751205.","DOI":"10.1145\/2751205.2751240"},{"key":"ref59","doi-asserted-by":"publisher","DOI":"10.1177\/1094342020945005"},{"key":"ref60","doi-asserted-by":"crossref","unstructured":"D. Th\u00f6nnes and U. R\u00fcde, Model-based performance analysis of the HyTeG finite element framework, in Proceedings of the Platform for Advanced Scientific Computing Conference, PASC \u201923, ACM, 2023, https:\/\/doi.org\/10.1145\/3592979.3593422.","DOI":"10.1145\/3592979.3593422"},{"key":"ref61","doi-asserted-by":"crossref","unstructured":"J. Treibig, G. Hager, and G. Wellein, LIKWID: A lightweight performance-oriented tool suite for x86 multicore environments, in Proceedings of PSTI2010, the First International Workshop on Parallel Software Tools and Tool Infrastructures, 2010, https:\/\/doi.org\/10.1109\/ICPPW.2010.38.","DOI":"10.1109\/ICPPW.2010.38"},{"key":"ref62","doi-asserted-by":"publisher","DOI":"10.1145\/1498765.1498785"},{"key":"ref63","doi-asserted-by":"publisher","DOI":"10.1016\/j.camwa.2009.10.027"},{"key":"ref64","doi-asserted-by":"publisher","DOI":"10.4208\/jcm.2009.27.5.011"},{"key":"ref65","doi-asserted-by":"publisher","DOI":"10.1145\/1644001.1644009"}],"container-title":["SIAM Journal on Scientific Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/24M1653756","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T15:19:30Z","timestamp":1787325570000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/24M1653756"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,1,29]]},"references-count":65,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2025,2,28]]}},"alternative-id":["10.1137\/24M1653756"],"URL":"https:\/\/doi.org\/10.1137\/24m1653756","relation":{},"ISSN":["1064-8275","1095-7197"],"issn-type":[{"value":"1064-8275","type":"print"},{"value":"1095-7197","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,1,29]]}}}