Javier Delgado, João Gazolla, Esteban Clua and S. Masoud Sadjadi
This paper proposes and describes a methodology developed to port complex scientific applications originally written in FORTRAN to nVidia CUDA. The significance of this lies in the fact that, despite the performance improvement and programmer-friendliness provided by CUDA, it presently lacks support for FORTRAN. The methodology described in this paper addresses this problem using a multiple step process that includes identification of software modules that benefit from being ported, familiarization with the code, porting, optimizing, and verifying the ported code. It was developed and carried out by porting an existing module of a weather forecasting application written in FORTRAN. Using this approach, we obtained a functional prototype of the ported module in approximately 3 months, despite our lack of knowledge of the theory of the weather code. Considering the relevance of this application to other scientific applications also written in FORTRAN, we believe that the proposed porting methodology described can be successfully utilized in several other existing scientific applications.
GPU, programming, CUDA, weather modeling.
 CATLETT et al. 2007. TeraGrid: Analysis of Organization, System Architecture, and Middleware Enabling New Types of Applications, HPC and Grids in Action, Ed. Lucio Grandinetti, IOS Press "Advances in Parallel Computing" series.
 GRELL GA, DUDHIA J & SAUFFER DR. 1994. Description of the fifth generation Penn State/NCAR Mesoscale Model (MM5). NCAR Tech. Rep., TN-3981STR: 121.
 HILLESLAND KE & LASTRA A. 2004. GPU floating-point paranoia. GP2 ACM Workshop on General Purpose Computing on Graphics Processors: 8.
 HONG SY, DUDHIA J & CHEN SH. 2004. A revised approach to ice microphysical processes for the bulk parameterization of cloud and precipitation. Mon. Weather Rev., 132: 103-120.
 IACONO MJ, MLAWER EJ, CLOUGH SA & MORCRETTE JJ. 2000. Impact of an improved longwave radiation model, RRTM, on the energy budget and thermodynamic properties of the NCAR Community Climate Model. J. Geophys. Res., 105: 14,873-14,890.
 MICHALAKES J, DUDHIA J, GILL D, HENDERSON T, KLEMP J, SKAMAROCK WC & WANG W. 2004. The Weather Reseach and Forecast Model: Software Architecture and Performance. In: Proc. 11th ECMWF Workshop on the Use of High Performance Computing In Meteorology: 25-29.
 MICHALAKES J & VACHHARAJANI M. 2008. GPU Acceleration of Numerical Weather Prediction. Parallel Processing Letters 18,4: 531-548.
 RYOO S, RODRIGUES C, STONE S, BAGHSORKHI S, UENG S, STRATTON J & HWU W. 2008. Optimization space pruning for a multithreaded GPU. International Symposium on Code Generation and Optimization.
 SKAMAROCK WC, KLEMP JB, DUDHIA J, GILL DO, BARKER DM, WANG W & POWERS JG. 2005. A Description of the Advanced Research WRF Version 2. NCAR/TN- 468+STR.