Skip to content

Attach EFA on spawn launch --efa without --mpi - #1112

Merged
scttfrdmn merged 2 commits into
mainfrom
fix/efa-single-launch
Oct 19, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
fix/efa-single-launch

Conversation

@scttfrdmn

@scttfrdmn scttfrdmn commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1162

Summary

spawn launch --efa without --mpi launches without EFA. EFAEnabled is only set inside resolveMPIPlacement, the --mpi path. On a plain launch the EFA pre-flight passes, and then RunInstances gets 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
  • no /sys/class/infiniband
  • fi_info -p efa: -61 (No data available)

Change

Not changed

A single-launch --efa still 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.

@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn

Copy link
Copy Markdown
Contributor Author

Added a second commit for the same gap on --placement-group: on a single launch it was applied only under --mpi, so an explicit cluster placement group was silently ignored. New test TestBuildLaunchConfig_PlacementGroupWithoutMPI fails without the change and passes with it.

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
scttfrdmn force-pushed the fix/efa-single-launch branch from 18d1311 to 12cb272 Compare October 19, 2026 03:52
@scttfrdmn scttfrdmn added this to the v0.135.2 milestone Oct 19, 2026
@scttfrdmn
scttfrdmn merged commit 4a23dec into main Oct 19, 2026
8 checks passed
@scttfrdmn
scttfrdmn deleted the fix/efa-single-launch branch October 19, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spawn launch --efa and --placement-group are ignored without --mpi

1 participant