Highly Scalable Dynamic Load Balancing in the Atmospheric Modeling System COSMO-SPECS+FD4

Similar documents
FD4: A Framework for Highly Scalable Dynamic Load Balancing and Model Coupling

GCMs with Implicit and Explicit cloudrain processes for simulation of extreme precipitation frequency

MICROPHYSICS COMPLEXITY EFFECTS ON STORM EVOLUTION AND ELECTRIFICATION

Parameterization of Cumulus Convective Cloud Systems in Mesoscale Forecast Models

Clouds and Convection

Climate Models: Uncertainties due to Clouds. Joel Norris Assistant Professor of Climate and Atmospheric Sciences Scripps Institution of Oceanography

Evalua&ng Downdra/ Parameteriza&ons with High Resolu&on CRM Data

Using Cloud-Resolving Model Simulations of Deep Convection to Inform Cloud Parameterizations in Large-Scale Models

REGIONAL CLIMATE AND DOWNSCALING

How To Understand And Understand The Physics Of Clouds And Precipitation

How To Calculate Turbulent Collision

walberla: Towards an Adaptive, Dynamically Load-Balanced, Massively Parallel Lattice Boltzmann Fluid Simulation

Uintah Framework. Justin Luitjens, Qingyu Meng, John Schmidt, Martin Berzins, Todd Harman, Chuch Wight, Steven Parker, et al

Description of zero-buoyancy entraining plume model

Turbulence-microphysics interactions in boundary layer clouds

Long-term Observations of the Convective Boundary Layer (CBL) and Shallow cumulus Clouds using Cloud Radar at the SGP ARM Climate Research Facility

Comparison of the Vertical Velocity used to Calculate the Cloud Droplet Number Concentration in a Cloud-Resolving and a Global Climate Model

Characterizing the Performance of Dynamic Distribution and Load-Balancing Techniques for Adaptive Grid Hierarchies

How To Model An Ac Cloud

Impact of microphysics on cloud-system resolving model simulations of deep convection and SpCAM

FRIEDRICH-ALEXANDER-UNIVERSITÄT ERLANGEN-NÜRNBERG

Convective Vertical Velocities in GFDL AM3, Cloud Resolving Models, and Radar Retrievals

Atmospheric kinetic energy spectra from high-resolution GEM models

Frank and Charles Cohen Department of Meteorology The Pennsylvania State University University Park, PA, U.S.A.

Performance Engineering of the Community Atmosphere Model

Climate-Weather Modeling Studies Using a Prototype Global Cloud-System Resolving Model

Developing Continuous SCM/CRM Forcing Using NWP Products Constrained by ARM Observations

Harvard wet deposition scheme for GMI

Software and Performance Engineering of the Community Atmosphere Model

Application of Numerical Weather Prediction Models for Drought Monitoring. Gregor Gregorič Jožef Roškar Environmental Agency of Slovenia

HPC Deployment of OpenFOAM in an Industrial Setting

Titelmasterformat durch Klicken. bearbeiten

Atmospheric Dynamics of Venus and Earth. Institute of Geophysics and Planetary Physics UCLA 2 Lawrence Livermore National Laboratory

A Multi-layered Domain-specific Language for Stencil Computations

Meteorological Forecasting of DNI, clouds and aerosols

Limitations of Equilibrium Or: What if τ LS τ adj?

A Review on the Uses of Cloud-(System-)Resolving Models

Trimodal cloudiness and tropical stable layers in simulations of radiative convective equilibrium

Turbulent mixing in clouds latent heat and cloud microphysics effects

Evaluating the Impact of Cloud-Aerosol- Precipitation Interaction (CAPI) Schemes on Rainfall Forecast in the NGGPS

ASSESSMENT OF THE CAPABILITY OF WRF MODEL TO ESTIMATE CLOUDS AT DIFFERENT TEMPORAL AND SPATIAL SCALES

Performance Monitoring of Parallel Scientific Applications

How To Find Out How Much Cloud Fraction Is Underestimated

Load Balancing on a Non-dedicated Heterogeneous Network of Workstations

What the Heck are Low-Cloud Feedbacks? Takanobu Yamaguchi Rachel R. McCrary Anna B. Harper

Solarstromprognosen für Übertragungsnetzbetreiber

Observed Cloud Cover Trends and Global Climate Change. Joel Norris Scripps Institution of Oceanography

Interactive Data Visualization with Focus on Climate Research

Unified Cloud and Mixing Parameterizations of the Marine Boundary Layer: EDMF and PDF-based cloud approaches

GOES-R AWG Cloud Team: ABI Cloud Height

Comparative Evaluation of High Resolution Numerical Weather Prediction Models COSMO-WRF

Mass flux fluctuation in a cloud resolving simulation with diurnal forcing

REMOTE SENSING OF CLOUD-AEROSOL RADIATIVE EFFECTS FROM SATELLITE DATA: A CASE STUDY OVER THE SOUTH OF PORTUGAL

I. Cloud Physics Application Open Questions. II. Algorithm Open Issues. III. Computer Science / Engineering Open issues

ParFUM: A Parallel Framework for Unstructured Meshes. Aaron Becker, Isaac Dooley, Terry Wilmarth, Sayantan Chakravorty Charm++ Workshop 2008

Tomasz STELMACH. WindSim Annual User Meeting 16 June 2011

Cloud-Resolving Simulations of Convection during DYNAMO

Data Visualization Study at Earth Simulator Center

Cloud Correction and its Impact on Air Quality Simulations

The Effect of Droplet Size Distribution on the Determination of Cloud Droplet Effective Radius

IMPACT OF DRIZZLE AND 3D CLOUD STRUCTURE ON REMOTE SENSING OF CLOUD EFFECTIVE RADIUS

Design and Optimization of OpenFOAM-based CFD Applications for Hybrid and Heterogeneous HPC Platforms

Wind resources map of Spain at mesoscale. Methodology and validation

Combining Satellite High Frequency Microwave Radiometer & Surface Cloud Radar Data for Determination of Large Scale 3 D Cloud IWC 서은경

A new positive cloud feedback?

Cellular Computing on a Linux Cluster

Physical properties of mesoscale high-level cloud systems in relation to their atmospheric environment deduced from Sounders

DETAILED STORM SIMULATIONS BY A NUMERICAL CLOUD MODEL WITH ELECTRIFICATION AND LIGHTNING PARAMETERIZATIONS

Building Platform as a Service for Scientific Applications

A Novel Switch Mechanism for Load Balancing in Public Cloud

1D shallow convective case studies and comparisons with LES

Calculation of Eigenmodes in Superconducting Cavities

2013 Code_Saturne User Group Meeting. EDF R&D Chatou, France. 9 th April 2013

Fog and Cloud Development. Bows and Flows of Angel Hair

How To Find Out How Much Cloud Fraction Is Underestimated

Assessing Cloud Spatial and Vertical Distribution with Infrared Cloud Analyzer

Mariana Vertenstein. NCAR Earth System Laboratory CESM Software Engineering Group (CSEG) NCAR is sponsored by the National Science Foundation

Clouds. Ulrike Lohmann Department of Physics and Atmospheric Science, Dalhousie University, Halifax, N. S., Canada

An economical scale-aware parameterization for representing subgrid-scale clouds and turbulence in cloud-resolving models and global models

Validation n 2 of the Wind Data Generator (WDG) software performance. Comparison with measured mast data - Flat site in Northern France

ME6130 An introduction to CFD 1-1

Transcription:

Center for Information Services and High Performance Computing (ZIH) Highly Scalable Dynamic Load Balancing in the Atmospheric Modeling System COSMO-SPECS+FD4 PARA 2010, June 9, Reykjavík, Iceland Matthias Lieber a, Verena Grützun b, Ralf Wolke c, Matthias S. Müller a, Wolfgang E. Nagel a a Center for Information Services and High Performance Computing (ZIH), TU Dresden, Germany b Max Planck Institute for Meteorology (MPI-M), Hamburg, Germany c Leibniz Institute for Tropospheric Research (IfT), Leipzig, Germany

Outline Very short introduction to cloud modeling COSMO-SPECS Framework FD4 COSMO-SPECS+FD4 benchmarks Conclusion & outlook 2

Introduction: Cloud Modeling Clouds play a major role for climate and weather: They influence the radiation budget of the planet, are part of the hydrological cycle, interact with aerosol particles and pollution Clouds represent one of the major uncertainties in climate and weather models [IPCC07, CCSP09] Unsatisfying improvements in precipitation forecast during the last decades 3

Introduction: Bulk Parameterization Schemes model mixing ratio mixing ratio real size distribution radius radius Cloud droplets are described by their bulk mass only Actual size distribution is neglected Computationally fast Used in most weather models 4

Introduction: Spectral Bin Microphysics Schemes model mixing ratio mixing ratio real size distribution radius radius Bin discretization of size distribution Allows more detailed modeling of interaction between aerosol particles, clouds, and precipitation Computationally very expensive (runtime & memory) Only used for process studies up to now (MM5, WRF, COSMO) 5

COSMO-SPECS: COSMO with SPECtral bin microphysics COSMO Model: non-hydrostatic limited-area atmospheric model, formerly known as Lokal-Modell of DWD http://www.cosmo-model.org COSMO-SPECS: Cloud parameterization scheme of COSMO replaced by the spectral bin microphysics model SPECS [Simmel06, Grützun08] 11 new variables to describe 3 types of hydrometeors (water droplets, frozen particles, insoluble particles) Discretized into a predefined number of size bins, e.g. 66 bins x 11 variables = 726 values! 6

COSMO-SPECS: Performance SPECS is very costly > 90% of total runtime SPECS runtime varies strongly Depending on range of droplet size distribution and the presence of frozen particles SPECS induces severe load imbalance COSMO's parallelization is based on static 2D partitioning Dynamic load balancing needed to run realistic cases on large HPC systems 7

Framework FD4: Basic Idea Present approaches: Cloud model is implemented as a submodule within the weather model Uses (static) data structures of the weather model Our idea: Functionality provided by FD4 Separate cloud model data from weather model data structures Independent domain decompositions Dynamic load balancing for the cloud model (Re)couple weather and cloud model 8

Framework FD4: Features FD4 = Four-Dimensional Distributed Dynamic Data structures Rectangular grid Block-based 3D decomposition 9

Framework FD4: Features FD4 = Four-Dimensional Distributed Dynamic Data structures Rectangular grid Block-based 3D decomposition Dynamic load balancing Hilbert space-filling curve ParMETIS 10

Framework FD4: Features FD4 = Four-Dimensional Distributed Dynamic Data structures Rectangular grid Block-based 3D decomposition Dynamic load balancing Hilbert space-filling curve ParMETIS 11

Framework FD4: Features FD4 = Four-Dimensional Distributed Dynamic Data structures Rectangular grid Block-based 3D decomposition Dynamic load balancing Hilbert space-filling curve ParMETIS Coupling to external model 12

Framework FD4: Features FD4 = Four-Dimensional Distributed Dynamic Data structures Rectangular grid Block-based 3D decomposition Dynamic load balancing Hilbert space-filling curve ParMETIS Coupling to external model Fortran 90, MPI! MPI initialization call MPI_Init(err) call MPI_Comm_rank(MPI_COMM_WORLD, rank, err) call MPI_Comm_size(MPI_COMM_WORLD, nproc, err! create the domain and allocate memory call fd4_domain_create(domain, nb, size, vart call fd4_util_allocate_all_blocks(domain, err call fd4_balance_readjust(domain, err)! initialize ghost communication call fd4_ghostcomm_create(ghostcomm, domain,! loop over time steps do timestep=1,nsteps! exchange ghosts call fd4_ghostcomm_exch(ghostcomm, err)! loop over local blocks call fd4_iter_init(domain, iter) do while(associated(iter%cur))! do some computations call compute_block(iter) call fd4_iter_next(iter) end do! dynamic load balancing call fd4_balance_readjust(domain, err) end do 13

COSMO-SPECS+FD4 Coupling FD4 Coupling FD4 Coupling COSMO FD4 SPECS FD4 Computes dynamics Send data to SPECS grid: Computes Microphysics Receive data from SPECS grid: Static MxN partitioning u, v, w, T, p, ρ, qv Data dynamically balanced by FD4 ΔT, qv, qc, qi 14

Strong Scaling Benchmark Comparing original COSMO-SPECS with COSMO-SPECS+FD4 Test scenario: heat bubble results in growth of cumulus cloud Horizontal grid: 80 x 80, 1km resolution Vertical grid: 48 nonuniform height levels (up to 18 km) 30 min forecast time 19 200 FD4 blocks (2 x 2 x 4 grid cells) Cloud ice Growing cumulus cloud Heat bubble t = 0 min t = 10 min t = 20 min t = 30 min 15

Strong Scaling Benchmark Results - SGI Altix 4700 Run time x #cores flat horizontal lines indicate perfect scaling 22:37 min 7:22 min 6:18 h Thanks to LRZ Munich for access to HLRB-II 16

Strong Scaling Benchmark Results - SGI Altix 4700 Component breakdown <40% used for computations FD4 load balancing and coupling COSMO computations Ghost exchange of hydrometeors including waiting times Advection of hydrometeors SPECS computations Thanks to LRZ Munich for access to HLRB-II 17

Weak Scaling Benchmark Replication scaling benchmark method [Straalen09] Create identical copies of same physical problem (i.e. cloud) when scaling up the grid size Each 32 x 32 horizontal grid tile initialized with a heat bubble Challenge: balance 393 216 blocks over 32k cores # Cores Grid size # Replicated clouds # FD4 blocks 256 32x32 1x1 3072 512 64x32 2x1 6144 1024 64x64 2x2 12 288 16 384 256x256 8x8 196 608 32 768 512x256 16x8 393 216 16x8 clouds after 30 min simulation 18

Weak Scaling Benchmark Results - BlueGene/P Run time flat horizontal lines indicate perfect scaling Thanks to JSC for access to JUGENE 19

Weak Scaling Benchmark Results - BlueGene/P Component breakdown <5% overhead for load balancing and coupling FD4 load balancing and coupling COSMO computations Ghost exchange of hydrometeors including waiting times Advection of hydrometeors SPECS computations Thanks to JSC for access to JUGENE 20

Conclusion & Outlook New way of coupling detailed cloud microphysics to atmospheric models FD4 provides highly scalable dynamic load balancing and coupling COSMO-SPECS performance increased significantly by FD4 FD4 not limited to meteorology Next steps: Adaptive time stepping Parallel I/O (based on NetCDF4) Avoid global metadata operations: local / hierarchical methods for load balancing and coupling 21

Outlook: Adaptive Block Mode in FD4 Only those blocks are allocated which are required to capture the clouds to save memory [Lieber10] FD4 ensures appropriate data for stencil operations COSMO-SPECS+FD4: run expensive spectral bin microphysics in cloudy grid cells only 22

The Last Slide Thank you for your attention! [CCSP09] Atmospheric Aerosol Properties and Climate Impacts, U.S. Climate Change Science Program and the Subcommittee on Global Change Research, 2009. [Grützun08] V. Grützun, O. Knoth, and M. Simmel. Simulation of the influence of aerosol particle characteristics on clouds and precipitation with LM SPECS: Model description and first results. Atmos. Res., 90:233 242, 2008. [IPCC07] S. Solomon et al. Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Forth Assessment Report of the Intergovernmental Panel on Climate Change (IPCC), 2007. [Lieber10] M. Lieber, R. Wolke, V. Grützun, M.S. Müller, and W.E. Nagel, A framework for detailed multiphase cloud modeling on HPC systems, in Parallel Computing Vol. 19, pages. 281-288, IOS Press, 2010. [Pinar04] A. Pinar and C. Aykanat. Fast optimal load balancing algorithms for 1D partitioning. J. Parallel Distrib. Comput., 64(8):974-996, 2004. [Simmel06] M. Simmel and S. Wurzler, Condensation and activation in sectional cloud microphysical models, Atmos. Res., 80:218-236, 2006. [Straalen09] B. Van Straalen, J. Shalf, T. Ligocki, N. Keen, and W.-S. Yang. Scalability challenges for massively parallel AMR applications, in IPDPS 09, pages 1-12, IEEE, 2009. [Teresco06] J.D. Teresco, K.D. Devine, and J.E. Flaherty. Partitioning and Dynamic Load Balancing for the Numerical Solution of Partial Differential Equations, in Numerical Solution of Partial Differential Equations on Parallel Computers, pages 55-88, Springer, 2006. This work has been funded by the German Research Foundation 23