Repository navigation
[CI] [AMD] spur: Run 1-, 2- and 4-GPU suites on part of a node - #48830
Merged
Merged
Conversation
launch_amd_ci_mi35x.sh takes --gpus 1|2|4|8. 8 keeps the whole-node --exclusive job; smaller counts request that many GPUs with --gres, so several jobs share a node. Such a job skips ensure_vram_clear.sh (it stops every GPU container on the host), runs in its own container, and passes only the render devices of the GPUs the scheduler assigned. The AMD CI scripts take the container name from CI_CONTAINER_NAME and the device list from AMD_CI_RENDER_DEVICES. Both default to today's behaviour (ci_sglang, all of /dev/dri), so ARC runners are unaffected. The Spur stage-a smoke workflow now asks for 1 GPU.
SLURM_WHOLE_NODE_ONLY names nodes that jobs asking for fewer than 8 GPUs stay off, so packed small jobs cannot leave every node partly busy and starve 8-GPU jobs.
Collaborator
|
The mi35x-spur jobs only can be dispatched through workflow, no need to run-ci |
bingxche
reviewed
Nov 6, 2026
A job killed before its EXIT trap runs leaves its container, and that container's GPU memory, behind; the scheduler then hands the GPU to the next job. Every Spur job now names its container ci_sglang_<jobid>, removes such containers whose job squeue no longer lists, and a job under 8 GPUs checks that its own GPUs are below 5% VRAM before starting.
HaiShaw
approved these changes
Nov 7, 2026
This was referenced Nov 7, 2026
This was referenced Nov 7, 2026
gyohuangxin
pushed a commit
to ROCm/aiter
that referenced
this pull request
Nov 9, 2026
…7645) Upstream sglang (sgl-project/sglang#48830, merged into amd/aiter-ci on 2026-11-07) replaced the hardcoded ci_sglang container name in scripts/ci/amd/amd_ci_install_dependency.sh with "$CI_CONTAINER_NAME" (default ci_sglang). The two human-eval entries in SGLANG_CI_PATCHES no longer matched, so both SGLang accuracy jobs failed at the patch step with "Expected snippet not found". Match the new text. Co-authored-by: Claude <[email protected]>
ruanjm
pushed a commit
to ROCm/aiter
that referenced
this pull request
Nov 10, 2026
…7645) Upstream sglang (sgl-project/sglang#48830, merged into amd/aiter-ci on 2026-11-07) replaced the hardcoded ci_sglang container name in scripts/ci/amd/amd_ci_install_dependency.sh with "$CI_CONTAINER_NAME" (default ci_sglang). The two human-eval entries in SGLANG_CI_PATCHES no longer matched, so both SGLang accuracy jobs failed at the patch step with "Expected snippet not found". Match the new text. Co-authored-by: Claude <[email protected]>
This was referenced Nov 10, 2026
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.
What
launch_amd_ci_mi35x.shtakes--gpus 1|2|4|8, matching thelinux-mi35x-gpu-Nlabels. 8 (the default) keeps today's whole-node--exclusivejob. 1, 2 and 4 request that many GPUs with--gres, so up to 8/N jobs share a node. The Spur stage-a smoke workflow now asks for 1 GPU.Why
Every Spur job currently holds a whole MI355X node, but the suites that queue longest on ARC are 1-GPU. Running
stage-a-test-1-gpu-small-amdon Spur leaves 7 of 8 GPUs idle. The scheduler already packs jobs: two--gres=gpu:2jobs on one node gotROCR_VISIBLE_DEVICES=0,1and2,3. What stopped sharing was our scripts, which assume one job per node.Changes
CI_CONTAINER_NAME, which defaults toci_sglang. A shared-node job usesci_sglang_<jobid>.amd_ci_start_container.shacceptsAMD_CI_RENDER_DEVICES, a list of/dev/dri/renderD*paths, in the same way ARC pods use/etc/podinfo/gha-render-devices. The job script maps the scheduler's GPU indices to render nodes through the KFD topology, so the container sees only its own GPUs.ensure_vram_clear.shstops every GPU container on the host, so only 8-GPU jobs run it.scancelor exit, only once the node has no jobs left. So every Spur job names its containerci_sglang_<jobid>and first removes those whose jobsqueueno longer lists. A smaller job then checks that its own GPUs are below 5% VRAM before starting.SLURM_WHOLE_NODE_ONLYlists nodes that jobs under 8 GPUs stay off, so packed small jobs cannot leave every node partly busy.Test servers don't collide on ports, because containers use Docker's default bridge network rather than the host network.
Test plan
All runs used
stage-a-test-1-gpu-small-amdon rocm10 from this branch, on one MI355X node.--gpus 2,--gpus 2and--gpus 1ran on the same node from 06:11 to 06:20 UTC. They got GPUs 0,1 / 2,3 / 4 in containersci_sglang_<jobid>, and each passed 11/11.GPUs assigned to this job still hold memory: /dev/dri/renderD136:30GiB.removing ci_sglang_271037: job 271037 has ended, got one of the freed GPUs and passed 11/11.--gpus 8ranensure_vram_clearas before and passed 11/11.sbatchstubbed out: default and 8 give--exclusive; 1/2/4 give--gres=gpu:N; 0, 3, 16 andxare rejected;SLURM_WHOLE_NODE_ONLYis added to--excludeonly for jobs under 8 GPUs.mainbefore this change: Test AMD MI35x (Spur) run 42144878076, stage-a 11/11.main. PR Test (AMD) on the ARC runners also hasn't run, since the PR has norun-ci. The ARC path goes through the defaulted variables unchanged.CI States
Latest PR Test (Base): ✅ Run #42198379453
Latest PR Test (Extra): ❌ Run #42198379387
Latest PR Test (AMD ROCm 10): ❌ Run #42198379390
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: