Skip to content

DetectGPUInstance misses p6-b200, p6e-gb200, p5en, gr6 and g6f: auto-AMI gives them the CPU image (no NVIDIA driver) #1579

Open

Description

@scttfrdmn

DetectGPUInstance (pkg/aws/ami.go) matches the text before the first . against an exact set: p6, p5e, p5, p4de, p4d, p3, p2, g7e, g7, g6e, g6, g5, g5g, g4dn, g3. Several NVIDIA families have names that don't equal any key. Those get AMI_AL2023_X86/ARM, the plain AL2023 image with no NVIDIA driver, so nvidia-smi sees nothing on a paid GPU host. This is the spawn#384 failure mode again, on a different set of names.

type family string in set? gets
p6-b200.48xlarge p6-b200 no (p6 is) CPU AMI
p6e-gb200.36xlarge p6e-gb200 no CPU AMI
p5en.48xlarge p5en no (p5e is) CPU AMI
gr6.4xlarge gr6 no CPU AMI
g6f.large g6f no CPU AMI

Evidence. I rendered DetectGPUInstance from the published module github.com/spore-host/[email protected], using spawn-ts's scripts/gen-go-fixtures.sh (#129 adds a launch-parity vector). It returns false for p6-b200.48xlarge and p5en.48xlarge. The function is byte-identical on main (b4c55f9). The other three rows follow from the same exact-match lookup.

Also, p6e-gb200 is a Grace (arm64) host. DetectArchitecture's static list would say x86_64, so only resolveArchitecture's DescribeInstanceTypes call saves the architecture there.

Fix idea. Match on the family prefix (p6-b200 → p6, p5en → p5e/p5), or better, take GPU presence and manufacturer from DescribeInstanceTypes GpuInfo (the call resolveArchitecture already makes), keeping the static set as the offline fallback.

spawn-ts mirrors this table exactly for parity (spore-host/spawn-ts#129), so it has the same gap until this is fixed and the vectors are regenerated.

Activity

  1. added this to the Hardening milestone on Nov 11, 2026
  2. added
    bug
    area:launch
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launchbugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions