Skip to content

Tools and extensions for GPU-accelerated OpenFOAM simulations

License

Notifications You must be signed in to change notification settings

vttresearch/gpuFoam

Repository files navigation

gpuFoam - Tools and extensions for GPU-accelerated OpenFOAM simulations

Overview

  • gpu_chemistry - Gpu accelerated detailed chemistry model

For more details check the README section in each of the subfolders listed above.

Requirements

Compilation

Everything in this folder should compile with the Allwmake script. Before running it, ensure that you have a valid OpenFOAM installation and compilers available.

  • For Nvidia

    To check that you have valid compilers for the Nvidia backend

    foamRun -help
    g++ --version
    nvcc --version
    

    Then check the name of your graphics card (for example with nvidia-smi) on and go to this page to see which compute capability it has. Modify the file ./nvcpp accordingly if necessary.

    Finally, run the commands

    export GPUFOAM_BACKEND_NVIDIA=1
    ./Allwmake
    
  • For AMD

    To check that you have valid compilers for the AMD backend

    foamRun -help
    g++ --version
    hipcc --version
    

    Then check the name of your graphics card and go to this page to see the matching architecture keyword. Modify the file ./hipcc if necessary.

    Finally, run the commands

    export GPUFOAM_BACKEND_AMD=1
    ./Allwmake
    

Credits

This project contains source code taken from the following projects

The licenses of the external projects can be found from their respective folders.

About

Tools and extensions for GPU-accelerated OpenFOAM simulations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published