@inproceedings{ede207a363144ca883d2d36117efdef5,
title = "Automatically Parallelizing Batch Inference on Deep Neural Networks Using Fiats and Fortran 2023 {\textquotedblleft}Do Concurrent{\textquotedblright}",
abstract = "This paper introduces novel programming strategies that leverage features of the Fortran 2023 standard of the International Standards Organization (ISO) to automatically parallelize computations on deep neural networks. The paper focuses on the interplay of object-oriented, parallel, and functional programming paradigms in the Fiats deep learning library. We demonstrate how several infrequently-used language features play a role in enabling efficient, parallel execution. Specifically, the ability to explicitly declare that a procedure is pure facilitates inference in the context of the language{\textquoteright}s loop-parallelism construct do concurrent. Also, explicitly prohibiting the overriding of a parent type{\textquoteright}s type-bound procedures eliminates the need for dynamic dispatch in performance-critical code. Finally, this paper uses batch inference calculations on a neural network surrogate for atmospheric aerosol dynamics to demonstrate that LLVM Flang compiler{\textquoteright}s automatic parallelization of do concurrent achieves roughly the same performance and scalability as achieved by OpenMP compiler directives. We also demonstrate that double-precision inference costs 37{\textendash}72\% longer runtime than default-real precision with most values in the range 57{\textendash}60\%.",
keywords = "Atmospheric Sciences, Deep learning, Fortran",
author = "Damian Rouson and Zhe Bai and Dan Bonachea and Kareem Ergawy and Ethan Gutmann and Michael Klemm and Katherine Rasmussen and Brad Richardson and Sameer Shende and David Torres and Yunhao Zhang",
note = "Publisher Copyright: {\textcopyright} This is a U.S. government work and not under copyright protection in the U.S.; foreign copyright protection may apply 2026.; 40th International Conference on High Performance Computing, ISC High Performance 2025 ; Conference date: 10-06-2025 Through 13-06-2025",
year = "2026",
doi = "10.1007/978-3-032-07612-0\_11",
language = "English",
isbn = "9783032076113",
series = "Lecture Notes in Computer Science",
publisher = "Springer Science and Business Media Deutschland GmbH",
pages = "135--147",
editor = "Sarah Neuwirth and Paul, \{Arnab Kumar\} and Tobias Weinzierl and Carson, \{Erin Claire\}",
booktitle = "High Performance Computing - ISC High Performance 2025 International Workshops, Revised Selected Papers",
address = "Germany",
}