Repository navigation
Conversation
salexo
requested review from
AVSuni,
bjorn-amd and
williamanzen
as code owners
November 6, 2026 08:20
This was referenced Nov 6, 2026
williamanzen
requested changes
Nov 6, 2026
salexo
force-pushed
the
fix/mixed-gpu-model-nodes
branch
from
November 11, 2026 15:13
b2b8190 to
673940d
Compare
salexo
force-pushed
the
fix/mixed-gpu-model-nodes
branch
2 times, most recently
from
November 19, 2026 10:16
f39177e to
2ae99a6
Compare
bjorn-amd
previously approved these changes
Nov 25, 2026
salexo
force-pushed
the
fix/mixed-gpu-model-nodes
branch
from
November 25, 2026 13:56
2ae99a6 to
4489df7
Compare
williamanzen
previously approved these changes
Nov 26, 2026
* Label every GPU model on nodes that mix GPU models * Keep GPU workloads off nodes with mixed GPU models * Mention DRA in the mixed-model reason only for AMD nodes * Count unrecognised GPUs toward the mixed-models marker
salexo
force-pushed
the
fix/mixed-gpu-model-nodes
branch
from
December 1, 2026 08:54
4489df7 to
f30890b
Compare
bjorn-amd
approved these changes
Dec 2, 2026
This branch has not been deployed
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.
Why
The accelerator detector labelled each GPU node with the first GPU's model and the count of all GPUs, because the default
aim-runtime detect-hardwareoutput reports one model per accelerator type. A node with 4 x MI350P and 2 x R9700 was labelledaim-accelerator.MI350P=6, and a node whose first card had an unrecognised device ID got no model labels at all.Labelling every model correctly isn't enough on its own. The device-plugin resources (
amd.com/gpu,nvidia.com/gpu) are a single pool per node, so a pod on a node with several GPU models can be given a model other than the one its profile targets, or a mix of models. Once the second model is labelled, its profiles would start matching the node and could receive the wrong GPUs.What changes
detect-hardware --verbose, which lists every GPU. Unrecognised GPUs are skipped and logged instead of hiding the node. Runtimes that predate--verbosefall back to the previous output.feature.node.kubernetes.io/aim-accelerator.mixed-models.GPU=<number of models>.mixed-models.GPUDoesNotExistterm, including profiles without a model or vendor. The profile's node mismatch reasons name these nodes and point to installing the GPU DRA driver and using DRA allocation to schedule onto them. CPU profiles are unaffected.0x75b8) toKnownAmdDevices, matching aim-build's table.[Unreleased]changelog entry.Behaviour changes to call out
aim-runtimelacks--verbosekeep the old one-model labels and publish no marker. This is documented.This is a standalone prerequisite for DRA support, which is the intended way to schedule onto these nodes. That will come in a follow-up PR.
Testing
go test ./internal/...passes; gofmt is clean, andgolangci-lint2.5.0 reports 0 issues on the changed packages.--verboseserialisation of a mixed node.tests/e2e/v1alpha2/mixed-gpu-models/resolved-affinity, which checks the term is in a GPU profile's resolved affinity and not in a CPU profile's. The detector also hasn't been run on real mixed hardware.