Accelerating an implicit ocean model using CUDA C
In this study, we developed an ocean model named GPU-IOCASM (GPU-Implicit Ocean Current and Storm Surge Model), which employs the finite difference method with implicit iteration to ensure simulation stability. Additionally, it incorporates an online nesting for multi-layer computational grids, allowing localized grid refinement in critical regions to enhance simulation accuracy. To maximize GPU parallelism and minimize memory overhead, we optimized the residual update algorithm, applied a mask-based conditional computation method, and designed an adaptive iteration count prediction strategy. When the simulation reaches a designated output time, relevant variables are copied from GPU memory to host memory, while the GPU proceeds with the next computation without waiting for the I/O operation to complete. This process is designed to run asynchronously in most cases, ensuring that data transfer and CPU-side operations do not interfere with GPU-based computation. Verification results demonstrate that GPU-IOCASM's simulation results exhibit strong agreement with both observed data and SCHISM’s results, confirming its reliability and precision. Furthermore, GPU-IOCASM achieves a remarkable speedup of over 312 times compared with traditional CPU-based approaches. Unlike traditional GPU acceleration methods that require frequent data transfers between the CPU and GPU, GPU-IOCASM is designed to perform as much computation as possible on the GPU, thereby minimizing data transfer overhead and improving computational efficiency.
Authors
- Xingru Feng (ORCID: https://orcid.org/0000-0002-8647-3794)
- Baoshu Yin
- Changmao Wu (ORCID: https://orcid.org/0000-0002-4104-1656)
- Jianbin Xie
- Changming Dong (ORCID: https://orcid.org/0000-0003-1517-7602)
- Tianhai Gao
Institutions
- Chinese Academy of Sciences (CN)
- Nanjing University of Information Science and Technology (CN)
- Institute of Oceanology (CN)
- Qingdao National Laboratory for Marine Science and Technology (CN)
- Institute of Software (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- Applied Ocean Research
- Published
- 2025-08-25
- DOI
- https://doi.org/10.1016/j.apor.2025.104740
- Citations
- 2
- Primary Topic
- Oceanographic and Atmospheric Processes
- Type
- article
- Field-Weighted Citation Impact
- 3.59