Repository navigation
Conversation
2decomp-fft v2.2.0 moved DECOMP_2D_COMM_CART_X from decomp_2d to decomp_2d_mpi, and decomp_2d is default-private there, so importing it from decomp_2d fails to compile (gfortran) against an external v2.2.0 install. Importing it from decomp_2d_mpi instead breaks the pinned v2.0.3.2, where only decomp_2d defines it. Read the communicator in a small helper that uses both modules without ONLY, so it resolves from whichever one defines it, and keep the full imports out of the decomposition routine's scope.
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 #330.
2decomp-fft v2.2.0 moved
DECOMP_2D_COMM_CART_Xfromdecomp_2dtodecomp_2d_mpi. In v2.2.0,decomp_2dis default-private and does not re-export it, so x3d2 fails to compile with gfortran against an external v2.2.0 install (via-Ddecomp2d_install_dir):The change suggested in the issue, importing it from
decomp_2d_mpi, would break the pinned v2.0.3.2, where onlydecomp_2ddefines it. nvfortran accepts the original import against v2.2.0, which is why our NVHPC builds never showed the error.Change
get_cart_x_comm(), that uses bothdecomp_2danddecomp_2d_mpiwithoutonly. The symbol resolves from whichever module defines it, so the code works with both layouts.decomposition_2decomp.Testing
CI only builds the pinned v2.0.3.2, so it does not exercise the v2.2.0 path.