Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve velocity with use of GPU instead of cpu with tools like OGL #586

Open
stefano2734 opened this issue Feb 14, 2024 · 1 comment
Open

Comments

@stefano2734
Copy link

stefano2734 commented Feb 14, 2024

Description of feature

GPU with using OpenCL, HIP and CUDA can accelerate about 4 to 100 times against cpu solution.

Potential solution

OGL Openfoam Ginkgo Layer with CUDA can do this with Nvidia Hardware.

See https://github.com/hpsim/OGL

minimum openfoam version is here 2106. so an update is here necessary in openfoam base.

and a solution with OpenCL is also possible with openfoam 1912 with solver petsc4foam

https://www.esi-group.com/sites/default/files/resource/other/1806/8th_OpenFOAM_Conference_Cineca_Spisso_2_0.pdf

https://wiki.openfoam.com/images/c/cd/OpenFOAM_2020_KAUST_Zampini.pdf

third is OpenMP 5.0 and higher (actual 5.2, 6.0 wip) with possible offloading to GPU with newer adapted openfoam
https://arxiv.org/pdf/2205.05681.pdf
https://www.openmp.org/wp-content/uploads/OpenMP_ECP_Sollve_May2023_AMDtalk.pdf

https://www.openmp.org/resources/refguides/

So two ways: external layer or internal in openfoam with newer Version of openfoam.

actual installation nextfoam with actual openfoam 23.06 and petsc4foam
https://blog.nextfoam.co.kr/2024/01/10/gpu-accelerated-openfoam-with-petsc4foam/

@friedenhe
Copy link
Collaborator

@stefano2734 Thanks for the suggestion. We do want to upgrade the OpenFOAM version to the latest. The main limitation is that we need to differentiate the newer OF version using CoDiPack and MeDiPack. This process is very time-consuming (on the order of months), and we do not have the manpower to do that at this moment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants