Repository navigation
Attach EFA on spawn launch --efa without --mpi - #1112
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
|
Added a second commit for the same gap on |
EFAEnabled was assigned only in resolveMPIPlacement, so a single launch with --efa validated EFA support and then launched with an ordinary ENA interface. Copy the flag onto the config in buildLaunchConfig, as #667 did for the network flags, with a test that fails without the fix.
Same gap as --efa: the flag was copied onto the config only in resolveMPIPlacement, which returns early without --mpi.
scttfrdmn
force-pushed
the
fix/efa-single-launch
branch
from
October 19, 2026 03:52
18d1311 to
12cb272
Compare
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.
Fixes #1162
Summary
spawn launch --efawithout--mpilaunches without EFA.EFAEnabledis only set insideresolveMPIPlacement, the--mpipath. On a plain launch the EFA pre-flight passes, and thenRunInstancesgets an ordinary ENA interface. Nothing warns.Found while launching a heterogeneous EFA pair for scttfrdmn/adit: a g7e.12xlarge client and a c8gn.16xlarge proxy. Different instance types can't be one MPI job array. With spawn v0.133.0, both instances came up with:
InterfaceType: interface/sys/class/infinibandfi_info -p efa:-61 (No data available)Change
buildLaunchConfigcopies--efaontoconfig.EFAEnabled, the same way --security-group-ids is silently dropped on spawn launch: instances always get the default SG (breaks --efs-id) #667 copies--subnet-idand--security-group-ids.TestBuildLaunchConfig_EFAWithoutMPIfails without the fix and passes with it.go test ./cmd/passes.spawn launch ... --efa --dry-runnow printsEFA: enabled.Not changed
A single-launch
--efastill creates no self-referencing security group. The caller passes--security-group-ids, which is what adit does. If spawn should create one for non-MPI EFA launches too, that's a separate decision.