I-8: C++ification of ELM's Urban Physics
Full Title | Porting ELM Urban Physics to Kokkos: What Worked, What Didn’t, and What’s Next |
|---|---|
First Author | Bisht, Gautam |
All Authors | Xu, Donghui |
Topic | Infrastructure/Model Development |
Project | PNNL LDRD |
Abstract | The E3SM Land Model (ELM), written in Fortran, lacks support for heterogeneous CPU–GPU architectures that are now standard on DOE supercomputers, while the atmosphere and ocean components have adopted the Kokkos programming model to achieve hardware portability. We present URBANxx, a Kokkos C++ port of ELM’s urban physics that enables execution on both multi-core CPUs and GPUs from a single source code base. Developed as a standalone library with a C API and Fortran bindings, URBANxx integrates non-invasively alongside ELM’s existing urban solver without requiring changes to the original Fortran code. Per–surface-type Kokkos Views replace ELM’s shared column arrays, consolidating memory for each urban surface (roof, walls, roads) and enabling fine-grained GPU parallelism across urban landunits. The standalone URBANxx driver demonstrates a 4.0–5.8x speedup on Perlmutter GPU nodes relative to CPU nodes for problem sizes of 1, 10, and 20 million grid cells. While this approach successfully demonstrated correctness—validated through tolerance-based per-timestep checks—and delivered measurable computational performance gains, it also revealed several nontrivial challenges, including reconciling 1‑based Fortran versus 0‑based C++ indexing, managing the Fortran–C interoperability layer, and maintaining parallel code paths during development. This initial port of ELM’s urban physics establishes a foundation for extending this porting strategy to additional ELM physics modules. |
Poster |
|