TSINGHUA UNIVERSITY C-Coupler: A Coupler for Earth System Model Xiaoge Wang, Li Liu, Guangwen Yang Department of Computer Science and Technology Center for Earth System Science Tsinghua University, Beijing, China 1 2 TSINGHUA UNIVERSITY Outline • • • • • Background Design Consideration Architecture Details Future work 3 TSINGHUA UNIVERSITY Two Projects – “Software platform for Supporting Earth System Model Research and Development” (210-2012) • • • • • Massive Data Management Visualization for ESM Integrated Software Development Environment Tools for Parallel Programming Application Showcases – “ Design of High-efficiency Parallel Computing Algorithms and Parallel Coupler for Earth System Model” (2010-2012) • • • • Parallel Numerical Algorithms and Performance Optimization Framework for Parallel Application Development Parallel Coupling Technology for ESM Development of a High-performance Physical Climate System Model4 Showcase App IDE Project Management Editor View Tools Lib Plugin Management Data Mngt. Data Conv. Template Lib-based Application Development Wizard Mode/Module Lib Coupler Module Radiation Module Parallel Encapsulation Compile, Debug, Deploy & Runtime Cumulus Convection Time integration Parameterized Module Module MPI …….. Boundary Layer Module …….. Fortran MPMD Debugger JASMIN Perf. Analysis Visualization Results Comp. Solver Module C/C++ Diagnosis Checkpoint Monitor Chart/Report Ver. Control Resource Virtualization Heterogeneous Resources 5 ShenWei Galaxy Dawning Lenovo TSINGHUA UNIVERSITY Coupling Technology Today in China • Coupling software in use – NCAR couplers • Cpl5/Cpl6: IAP (LASG), Beijing Normal University, National Climate Center – OASIS • OASIS3/OASIS4: regional coupling, atm-ocn coupling, typhoon model coupling • Need for a Coupler – Which coupler should be used? – Develop a new coupler to meet the need? • C-Coupler project started in 2010 6 TSINGHUA UNIVERSITY Demand for Coupler • User Friendliness and Flexibility – Easier parameter control – Easier customization of coupling method • Higher Performance – Better Scalability – System-level Load balance – Efficient global communication • More Functions – Interactive ensemble – 3D coupling 7 TSINGHUA UNIVERSITY Outline • • • • • Background Design Consideration Architecture Details Future work 8 TSINGHUA UNIVERSITY General Idea in a Picture 9 TSINGHUA UNIVERSITY Software Technologies • Component oriented programming – Component based integration – Component reuse • Model reuse • Coupling algorithm reuse • Software configuration management – – – – Model configuration Coupling algorithm configuration Coupler configuration ESM case configuration 10 TSINGHUA UNIVERSITY Features of C-Coupler • User friendly and flexible – Both GUI and scripts for configuration – More configurable points • High performance – Efficient communication • Parallel communication • Asynchronous communication • Direct communication between models – System-level load balance • Monitoring the performance of models and coupler • Schedule the coupling computation among models and the coupler – PIO • A PIO-specific module based on PNetCDF 11 TSINGHUA UNIVERSITY Features of C-Coupler (cont.) • Supporting Functions – Interactive ensemble – 3D coupling – Regional coupling 12 TSINGHUA UNIVERSITY Outline • • • • • Background Design Consideration Architecture Details Future work 13 TSINGHUA UNIVERSITY Architecture(1) 14 TSINGHUA UNIVERSITY Architecture(2) 15 TSINGHUA UNIVERSITY Outline • • • • • Background Design Consideration Architecture Some Details Future work 16 TSINGHUA UNIVERSITY Model Configuration 17 TSINGHUA UNIVERSITY Coupling Algorithm Configuration 18 TSINGHUA UNIVERSITY Coupler Configuration 19 TSINGHUA UNIVERSITY ESM Case Configuration 20 TSINGHUA UNIVERSITY Coupling Driver 21 TSINGHUA UNIVERSITY Outline • • • • • Background Design consideration Architecture Some Details Future work 22 TSINGHUA UNIVERSITY Future Work • Complete the first version of C-coupler • FGOALS • Integrity and robustness • Scalability and efficiency • Portability and adaptability 23 TSINGHUA UNIVERSITY Thanks! 24 TSINGHUA UNIVERSITY Q&A 25