Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package

In this study, we present a fast algorithm for the numerical solution of the heat equation. The heat equation models the heat diffusion over time and through a given region. We engage a finite difference method to solve this equation numerically. The performance of its parallel implementation is con...

Full description

Bibliographic Details
Published in:Frontiers in Computer Science
Main Author: Tarik Chakkour
Format: Article
Language:English
Published: Frontiers Media S.A. 2024-01-01
Subjects:
Online Access:https://www.frontiersin.org/articles/10.3389/fcomp.2023.1305800/full
_version_ 1850107252699037696
author Tarik Chakkour
author_facet Tarik Chakkour
author_sort Tarik Chakkour
collection DOAJ
container_title Frontiers in Computer Science
description In this study, we present a fast algorithm for the numerical solution of the heat equation. The heat equation models the heat diffusion over time and through a given region. We engage a finite difference method to solve this equation numerically. The performance of its parallel implementation is considered using Message Passing Interface (MPI), Compute Unified Device Architecture (CUDA), and time schemes, such as Forward Euler (FE) and Runge-Kutta (RK) methods. The originality of this study is research on parallel implementations of the fourth-order Runge-Kutta method (RK4) for sparse matrices on Graphics Processing Unit (GPU) architecture. The supreme proprietary framework for GPU computing is CUDA, provided by NVIDIA. We will show three metrics through this parallelization to compare the computing performance: time-to-solution, speed-up, and performance. The spectral method is investigated by utilizing the FFTW software library, based on the computation of the fast Fourier transforms (FFT) in parallel and distributed memory architectures. Our CUDA-based FFT, named CUFFT, is performed in platforms, which is a highly optimized FFTW implementation. We will give numerical tests to reveal that this method is up-and-coming for solving the heat equation. The final result demonstrates that CUDA has a significant advantage and performance since the computational cost is tiny compared with the MPI implementation. This vital performance gain is also achieved through careful attention of managing memory communication and access.
format Article
id doaj-art-2950f03ba767492babfc39cff87c8e69
institution Directory of Open Access Journals
issn 2624-9898
language English
publishDate 2024-01-01
publisher Frontiers Media S.A.
record_format Article
spelling doaj-art-2950f03ba767492babfc39cff87c8e692025-08-20T00:01:43ZengFrontiers Media S.A.Frontiers in Computer Science2624-98982024-01-01510.3389/fcomp.2023.13058001305800Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW packageTarik ChakkourIn this study, we present a fast algorithm for the numerical solution of the heat equation. The heat equation models the heat diffusion over time and through a given region. We engage a finite difference method to solve this equation numerically. The performance of its parallel implementation is considered using Message Passing Interface (MPI), Compute Unified Device Architecture (CUDA), and time schemes, such as Forward Euler (FE) and Runge-Kutta (RK) methods. The originality of this study is research on parallel implementations of the fourth-order Runge-Kutta method (RK4) for sparse matrices on Graphics Processing Unit (GPU) architecture. The supreme proprietary framework for GPU computing is CUDA, provided by NVIDIA. We will show three metrics through this parallelization to compare the computing performance: time-to-solution, speed-up, and performance. The spectral method is investigated by utilizing the FFTW software library, based on the computation of the fast Fourier transforms (FFT) in parallel and distributed memory architectures. Our CUDA-based FFT, named CUFFT, is performed in platforms, which is a highly optimized FFTW implementation. We will give numerical tests to reveal that this method is up-and-coming for solving the heat equation. The final result demonstrates that CUDA has a significant advantage and performance since the computational cost is tiny compared with the MPI implementation. This vital performance gain is also achieved through careful attention of managing memory communication and access.https://www.frontiersin.org/articles/10.3389/fcomp.2023.1305800/fullheat conduction equationparallelizationnumerical schemesRunge-KuttaMPINavier-Stokes Cuda
spellingShingle Tarik Chakkour
Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
heat conduction equation
parallelization
numerical schemes
Runge-Kutta
MPI
Navier-Stokes Cuda
title Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
title_full Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
title_fullStr Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
title_full_unstemmed Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
title_short Parallel computation to bidimensional heat equation using MPI/CUDA and FFTW package
title_sort parallel computation to bidimensional heat equation using mpi cuda and fftw package
topic heat conduction equation
parallelization
numerical schemes
Runge-Kutta
MPI
Navier-Stokes Cuda
url https://www.frontiersin.org/articles/10.3389/fcomp.2023.1305800/full
work_keys_str_mv AT tarikchakkour parallelcomputationtobidimensionalheatequationusingmpicudaandfftwpackage