Repository navigation
Conversation
…d OpenMP 010 kernels
kaanolgu
force-pushed
the
omp-poisson-010-stretched
branch
from
November 20, 2026 14:55
72075da to
cc1708d
Compare
kaanolgu
marked this pull request as ready for review
November 20, 2026 14:55
This branch has not been deployed
This file contains hidden or 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
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.
Closes #388
Add top-bottom y stretching to the OpenMP Poisson solver for the 010 case (periodic x and z, non-periodic y). On
main,init_ompstops every OpenMP run that has a stretched y meshprocess_spectral_010_fw,process_spectral_010_poissonandprocess_spectral_010_bwto the OpenMP spectral kernels. The pentadiagonal solve is a port of the CUDA kernelp_col > 1). On many ranks the solve uses the y-pencil, soinit_ompbuilds the stretching matrices for the y-pencil blockp_row > 1) still stops ininit_buffers_010test_poisson_bc --bc pdp --stretch top-bottomfor OpenMP on 1 and 2 rankschannel_smokeregression case for OpenMP on 1 rankThe PR also moves the forward and backward steps of
process_spectral_010into the new kernels. The uniform results do not change. The uniform channelmonitoring.csvis identical before and after the changeAll runs below use double precision. The channel case is
tests/regression/channel_smoke.x3dwith 20 iterations,n_output = 1and no initial noise. The 2-rank OpenMP run splits z. The table gives the maximum difference over the 21 rows ofmonitoring.csvdiv_u_max(absolute)At step 20 all three runs give a kinetic energy of 0.1434179634725 and an enstrophy of 1.125300909082. The
div_u_maxvalues are 5.9e-17 (OpenMP, 1 rank), 7.3e-18 (OpenMP, 2 ranks) and 9.8e-17 (CUDA)The table gives the errors of
test_poisson_bc --bc pdp --stretch top-bottomon the 64x65x64 gridAll checks pass on the three runs. The error against the analytic solution is the same on the three runs. The OpenMP div(grad p) errors are up to 45 times larger than the CUDA errors, but all of them are less than 6e-12. The uniform
test_poisson_bc --bc pdpcase shows a gap of the same size, so the stretched solve does not cause itThe golden file
channel_smoke_golden_omp.csvgives the same result from two separate builds. In double precision and in single precision,ctest -L omppasses all 75 tests. On CUDA, theregression_channelandtest_poisson_bctests pass