-
Notifications
You must be signed in to change notification settings - Fork 14
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
HEFFTE support in compressible FHD + Advanced diagnostics for compressible turbulence #146
Open
isriva
wants to merge
50
commits into
main
Choose a base branch
from
fhd_heffte
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ajnonaka please check the detailed PR description on how to compile using HEFFTE on various machines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This major PR now includes the capability to do distributed FFT (using HEFFTE). This is currently implemented for compressible staggered turbulence codes, but can be easily ported to other codes. HEFFTE works with the three major backends: FFTW, cuFFT and rocFFT for usage on CPUs, and NVIDIA and AMD GPUs. Some other developments in this PR include:
Compile-time options: This PR now enables several more compile time options described below:
DO_TURB
: This option switches on/off the compilation of turbulence-specific codes -- not needed if additional turbulence stats and turbulent forcing is not desired.USE_HEFFTE_FFTW
: Do distributed FFT using HeFFTe (https://github.com/icl-utk-edu/heffte) for turbulence statistics using FFTW backend (need FFTW libraries)USE_HEFFTE_CUFFT
: Do distributed FFT using HeFFTe (https://github.com/icl-utk-edu/heffte) for turbulence statistics using cuFFT backend (needs NVIDIA cuFFT libraries)USE_HEFFTE_ROCFFT
: Do distributed FFT using HeFFTe (https://github.com/icl-utk-edu/heffte) for turbulence statistics using rocFFT backend (needs AMD rocFFT libraries)It is possible to do various mixes, such as CUDA compilation of the code using
USE_CUDA=TRUE
and still FFTW backend usingUSE_HEFFTE_FFTW=TRUE
etc., as long as the required libraries are available.Distributed FFTs using
USE_HEFFTE_FFTW=TRUE
,USE_HEFFTE_CUFFT=TRUE
orUSE_HEFFTE_ROCFFT=TRUE
requires installing HeFFTe (https://github.com/icl-utk-edu/heffte). Please follow the steps below:git clone https://github.com/isriva/heffte.git
exec/compressible_stag
using any of the HEFFTE backend flags described abovebuild_frontier.sh
inexec/compressible_stag
to compile on Frontier. One can changes some compile time flags such asDO_TURB
andMAX_SPECIES