Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC
Although GPUs can offer higher computing power at low power consumption, their low-level programming can be relatively complex and consume programming time. For this reason, directive-based alternatives such as OpenACC could be used to specify high-level parallelism without original code modificatio...
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2022-11-01
|
Series: | Applied Sciences |
Subjects: | |
Online Access: | https://www.mdpi.com/2076-3417/12/22/11430 |
_version_ | 1797466032792666112 |
---|---|
author | Diego Padilla-Perez Isaac Medina-Sanchez Jorge Hernández Carlos Couder-Castañeda |
author_facet | Diego Padilla-Perez Isaac Medina-Sanchez Jorge Hernández Carlos Couder-Castañeda |
author_sort | Diego Padilla-Perez |
collection | DOAJ |
description | Although GPUs can offer higher computing power at low power consumption, their low-level programming can be relatively complex and consume programming time. For this reason, directive-based alternatives such as OpenACC could be used to specify high-level parallelism without original code modification, giving very accurate results. Nevertheless, in the FDTD method, absorbing boundary conditions are commonly used. The key to successful performance is correctly implementing the boundary conditions that play an essential role in memory use. This work accelerates the simulations of electromagnetic wave propagation that solve the Maxwell curl equations by FDTD using CMPL boundary in TE mode using OpenACC directives. A gain of acceleration optimizing the use of memory is shows, checking the loops intensities, and the use of single precision to improve the performance is also analyzed, producing an acceleration of around 5X for double precision and 11X for single precision respectively, comparing with the serial vectorized version, without introducing errors in long-term simulations. The scenarios of simulation established are common of interest and are solved at different frequencies supported by a Mid-range cards GeForce RTX 3060 and Titan RTX. |
first_indexed | 2024-03-09T18:30:13Z |
format | Article |
id | doaj.art-4ce1311c66e84b72b8f9e110ef16f231 |
institution | Directory Open Access Journal |
issn | 2076-3417 |
language | English |
last_indexed | 2024-03-09T18:30:13Z |
publishDate | 2022-11-01 |
publisher | MDPI AG |
record_format | Article |
series | Applied Sciences |
spelling | doaj.art-4ce1311c66e84b72b8f9e110ef16f2312023-11-24T07:35:09ZengMDPI AGApplied Sciences2076-34172022-11-0112221143010.3390/app122211430Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACCDiego Padilla-Perez0Isaac Medina-Sanchez1Jorge Hernández2Carlos Couder-Castañeda3Instituto Politécnico Nacional, Centro de Desarrollo Aeroespacial, Belisario Domínguez 22, Centro, Cuauhtémoc, Ciudad de México 06610, MexicoInstituto Politécnico Nacional, Centro de Desarrollo Aeroespacial, Belisario Domínguez 22, Centro, Cuauhtémoc, Ciudad de México 06610, MexicoInstituto Politécnico Nacional, Centro de Desarrollo Aeroespacial, Belisario Domínguez 22, Centro, Cuauhtémoc, Ciudad de México 06610, MexicoInstituto Politécnico Nacional, Centro de Desarrollo Aeroespacial, Belisario Domínguez 22, Centro, Cuauhtémoc, Ciudad de México 06610, MexicoAlthough GPUs can offer higher computing power at low power consumption, their low-level programming can be relatively complex and consume programming time. For this reason, directive-based alternatives such as OpenACC could be used to specify high-level parallelism without original code modification, giving very accurate results. Nevertheless, in the FDTD method, absorbing boundary conditions are commonly used. The key to successful performance is correctly implementing the boundary conditions that play an essential role in memory use. This work accelerates the simulations of electromagnetic wave propagation that solve the Maxwell curl equations by FDTD using CMPL boundary in TE mode using OpenACC directives. A gain of acceleration optimizing the use of memory is shows, checking the loops intensities, and the use of single precision to improve the performance is also analyzed, producing an acceleration of around 5X for double precision and 11X for single precision respectively, comparing with the serial vectorized version, without introducing errors in long-term simulations. The scenarios of simulation established are common of interest and are solved at different frequencies supported by a Mid-range cards GeForce RTX 3060 and Titan RTX.https://www.mdpi.com/2076-3417/12/22/11430CPMLFDTDMaxwellOpenACC |
spellingShingle | Diego Padilla-Perez Isaac Medina-Sanchez Jorge Hernández Carlos Couder-Castañeda Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC Applied Sciences CPML FDTD Maxwell OpenACC |
title | Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC |
title_full | Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC |
title_fullStr | Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC |
title_full_unstemmed | Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC |
title_short | Accelerating Electromagnetic Field Simulations Based on Memory-Optimized CPML-FDTD with OpenACC |
title_sort | accelerating electromagnetic field simulations based on memory optimized cpml fdtd with openacc |
topic | CPML FDTD Maxwell OpenACC |
url | https://www.mdpi.com/2076-3417/12/22/11430 |
work_keys_str_mv | AT diegopadillaperez acceleratingelectromagneticfieldsimulationsbasedonmemoryoptimizedcpmlfdtdwithopenacc AT isaacmedinasanchez acceleratingelectromagneticfieldsimulationsbasedonmemoryoptimizedcpmlfdtdwithopenacc AT jorgehernandez acceleratingelectromagneticfieldsimulationsbasedonmemoryoptimizedcpmlfdtdwithopenacc AT carloscoudercastaneda acceleratingelectromagneticfieldsimulationsbasedonmemoryoptimizedcpmlfdtdwithopenacc |