feat(fdtd): add multi-GPU joint solve#1
Merged
Conversation
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.
Summary
FDTDParallelConfigand a single-processDistributedFDTDx-slab execution coreUser impact
A single FDTD simulation can span homogeneous peer-accessible NVIDIA GPUs without replicating the full volumetric field state on every device. Monitor-first output preserves the aggregate-memory benefit; explicit full-field gathering remains opt-in and capacity checked.
Supported and hardware-qualified paths include uniform/nonuniform grids, CPML, scalar/diagonal linear media, conductivity, electric/magnetic ADE, point/time/plane/flux/mode monitors, multi-frequency DFT, early shutoff, and sharded persistence. Unsupported combinations fail during preparation instead of silently changing physics.
Validation
Built the native extension cleanly with CUDA 13 on two NVIDIA RTX A6000 GPUs connected by NV4.
Hardware benchmarks:
The small 129x65x65 DFT case is documented as below break-even (0.267x).
Scope and limitations
This is an engineering-preview single-node P2P forward runtime. This host could not qualify 3/4 GPU, PCIe-only, or Nsight profiler evidence. NCCL/multi-node, distributed adjoint, peer-aware CUDA Graph capture, x-periodic/Bloch/symmetry, advanced source families, nonlinear/full-off-diagonal media, and SIBC remain explicitly guarded.
See
docs/reference/fdtd-multi-gpu-joint-solve.mdfor the complete support and acceptance matrix.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.