Chapter 13

Using OpenACC to port large legacy climate and weather modeling code to GPUs

Xavier Lapillonne*; Katherine Osterried ; Oliver Fuhrer*     * Federal Office of Meteorology and Climatology MeteoSwiss, Zurich, Switzerland Center for Climate Systems Modeling (C2SM), ETH Zurich, Zurich, Switzerland

Abstract

The purpose of this chapter is to describe a step-by-step porting approach for weather and climate model Fortran code to run on GPUs using CUDA and OpenACC.

At the end of this chapter, the reader will have a basic understanding of:

 How to use OpenACC to port components of a production weather and climate model achieving a gain of about a factor of 2.3 × in terms of time to solution and about a factor of 3 × in terms ...

Get Parallel Programming with OpenACC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.