Projects per year
Abstract
Fortran is the lingua franca of HPC code development and as such it is crucial that we as a community have open source Fortran compilers capable of generating high performance executables. Flang is LLVM's Fortran compiler and leverages MLIR which is a reusable compiler infrastructure which, as part of LLVM, has become popular in recent years.
However, whilst Flang leverages MLIR it does not fully integrate with it and instead provides bespoke translation and optimisation passes to target LLVM-IR. In this paper we first explore the performance of Flang against other compilers popular in HPC for a range of benchmarks before describing a mapping between Fortran and standard MLIR, exploring the performance of this. The result of this work is an up to three times speed up compared with Flang's existing approach across the benchmarks and experiments run, demonstrating that the Flang community should seriously consider leveraging standard MLIR.
However, whilst Flang leverages MLIR it does not fully integrate with it and instead provides bespoke translation and optimisation passes to target LLVM-IR. In this paper we first explore the performance of Flang against other compilers popular in HPC for a range of benchmarks before describing a mapping between Fortran and standard MLIR, exploring the performance of this. The result of this work is an up to three times speed up compared with Flang's existing approach across the benchmarks and experiments run, demonstrating that the Flang community should seriously consider leveraging standard MLIR.
Original language | English |
---|---|
Title of host publication | Proceedings of the Tenth Annual Workshop on the LLVM Compiler Infrastructure in HPC |
Publisher | IEEE Computer Society Press |
Publication status | Accepted/In press - 1 Oct 2024 |
Event | The Tenth Annual Workshop on the LLVM Compiler Infrastructure in HPC - Atlanta, United States Duration: 18 Nov 2024 → 18 Nov 2024 https://llvm-hpc-2024-workshop.github.io/ |
Workshop
Workshop | The Tenth Annual Workshop on the LLVM Compiler Infrastructure in HPC |
---|---|
Country/Territory | United States |
City | Atlanta |
Period | 18/11/24 → 18/11/24 |
Internet address |
Fingerprint
Dive into the research topics of 'Fully integrating the Flang Fortran compiler with standard MLIR'. Together they form a unique fingerprint.-
Efficient Cross-Domain DSL Development for Exascale
Grosser, T., Brown, N., Krause, A. & Steuwer, M.
Engineering and Physical Sciences Research Council
2/08/21 → 31/03/25
Project: Research
-
Greener supercomputing: ensuring weather and climate simulations do not cost the earth
29/02/24 → 28/02/25
Project: Research