CFD Code Parallelization on GPU and the Code Portability

Abstract Goal of this paper is to develop a fully functional parallel Computational Fluid Dynamics (CFD) code that is optimized to run on a single Graphics Processing Unit (GPU). This is achieved by writing the code in FORTRAN and OpenACC (Open Accelerators), providing them with an easily portable, platform independent code. Existing CFD code is significantly modified to allow for parallel asynchronous execution. Also, due to strong recursive dependencies in Tridiagonal Matrix Algorithm (TDMA) solver, it is replaced with Jacobi, which provides fast execution in environments with large number of parallel cores. In this research a computer code for simulation of 2D flow of water through the axisymmetric channel is used as a base for development. The parallel code is executed on GPU, single, and multicore Central Processing Unit (CPU), and the execution times are compared between platforms. Even though that Jacobi solver performs worse on single core computers, compared to its Gauss‐seidel counterpart, it is used to provide a baseline for comparison. In this work, it is shown that computation on finer grids takes less time on GPU than on CPU. The computation time increase with the number of cells in grid on GPU should follow the observed linear trend until the GPUs physical limitations are reached depending on memory size and core count.

Authors

Institutions

Publication Details

Journal
Advanced Theory and Simulations
Published
2024-12-06
DOI
https://doi.org/10.1002/adts.202400629
Citations
1
Primary Topic
Fluid Dynamics Simulations and Interactions
Type
article
Field-Weighted Citation Impact
0.37
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CFD Code Parallelization on GPU and the Code Portability

Lei Deng, Nenad Crnomarković, Andrijana Stojanović, Defu Che et al.
1 citations
Advanced Theory and Simulations
Fluid Dynamics Simulations and Interactions
0.37
article

CFD Code Parallelization on GPU and the Code Portability

Lei Deng, Nenad Crnomarković, Andrijana Stojanović, Defu Che, Ivan Tomanović, Aleksandar Milićević, Srdjan Belošević
article en
1 citations

Abstract

Abstract Goal of this paper is to develop a fully functional parallel Computational Fluid Dynamics (CFD) code that is optimized to run on a single Graphics Processing Unit (GPU). This is achieved by writing the code in FORTRAN and OpenACC (Open Accelerators), providing them with an easily portable, platform independent code. Existing CFD code is significantly modified to allow for parallel asynchronous execution. Also, due to strong recursive dependencies in Tridiagonal Matrix Algorithm (TDMA) solver, it is replaced with Jacobi, which provides fast execution in environments with large number of parallel cores. In this research a computer code for simulation of 2D flow of water through the axisymmetric channel is used as a base for development. The parallel code is executed on GPU, single, and multicore Central Processing Unit (CPU), and the execution times are compared between platforms. Even though that Jacobi solver performs worse on single core computers, compared to its Gauss‐seidel counterpart, it is used to provide a baseline for comparison. In this work, it is shown that computation on finer grids takes less time on GPU than on CPU. The computation time increase with the number of cells in grid on GPU should follow the observed linear trend until the GPUs physical limitations are reached depending on memory size and core count.

Advanced Theory and SimulationsVol. 8(3)
University of Belgrade (RS), Xi'an Jiaotong University (CN)
Affordable and clean energy
Openalex Percentile: Top 40%
Fluid Dynamics Simulations and Interactions
0.37
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.