Add RIKYU support for MHDTurbulence - #144
Draft
william-dawson wants to merge 1 commit into
Draft
Conversation
- Add RIKYU rows, build, and run support (nvhpc-hpcx-cuda13/26.5) - Add patches fixing gfortran random_seed PUT size and CUDA-context-before-MPI - Add the per-rank CUDA_VISIBLE_DEVICES wrapper needed for multi-GPU launch
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.
What
list.csv: 1, 4, and 8 GPUs (1×1, 1×4, 2×4), 10-min budget, as-shipped config.nvhpc-hpcx-cuda13/26.5;build.shproduces one binary per rank count (Simulation.x.t{1,4,8}) becausentilesis a compile-time parameter;run.shselects bynodes × numproc_nodeand launches through a per-rank GPU wrapper.build.sh, no-ops once upstream):random_seed_put_size.patch—random_seed(PUT=)needs the compiler's seed size (8 for gfortran); physically inert (rrv=0).acc_init_before_mpi.patch— initialize the CUDA context beforeMPI_Init.run.sh):CUDA_VISIBLE_DEVICES=$OMPI_COMM_WORLD_LOCAL_RANKper rank.Why the patch + wrapper are required together
Without them, multi-node GPU runs hang silently in the first
BoundaryCondition: UCX fails the device-bufferMPI_ISENDwithcannot find remote protocol for: inter-node tag_send(multi) from cuda/GPU, and the code waits forever inMPI_WAITALL(the app setsMPI_ERRORS_RETURNand never checks the ISEND return). The context must exist beforeMPI_Initand each rank must pin exactly one GPU at launch; either part alone still fails. Excluding CUDA transports is not an alternative — hpcx-2.50 has no host-staging path for device buffers (MPI_INITaborts, "no copy across memory types transport").Validation (2026-09-03, Rikyu)
william-dawson/MHDTurbulencebranchgfortran-port(commitsd9a19d9,4db3adb); candidate upstream PRs tocfcanaoj/MHDTurbulence.Draft for review of the build/run structure and the patch-application pattern.