Skip to content

Cap xdist workers per GPU to avoid oversubscription#805

Open
psanal35 wants to merge 9 commits into
amd-mainfrom
test-cap-xdist-workers-per-gpu
Open

Cap xdist workers per GPU to avoid oversubscription#805
psanal35 wants to merge 9 commits into
amd-mainfrom
test-cap-xdist-workers-per-gpu

Conversation

@psanal35

Copy link
Copy Markdown

On single-GPU ROCm runners, xdist can spawn more workers than can
effectively utilize the available device. This causes multiple workers
to contend for the same GPU.

Changes

  • Add a per-GPU worker cap.
  • Limit num_processes to gpu_count * max_workers_per_gpu.
  • Keep existing behavior unchanged on multi-GPU runners.

@psanal35 psanal35 force-pushed the test-cap-xdist-workers-per-gpu branch from 5cdf787 to 15ebab9 Compare June 19, 2026 13:47
mminutoli and others added 3 commits June 19, 2026 18:22
Extends the wheel test continuous and nightly release workflows to run
against TheRock 7.13.0 and TheRock latest builds in addition to ROCm 7.2.0.
Consolidate the ROCm wheel RUNPATH strategy in jaxlib/rocm/rocm_rpath.bzl and
embed it at link time via _WHEEL_RPATHS instead of a post-build patchelf step
(applied under rocm_path_type=link_only, which the release wheel config sets).

A single wheel resolves ROCm libs across TheRock pip wheels (1- and 2-deep
$ORIGIN layouts), TheRock tarballs under /opt/rocm-<ver>, and legacy /opt/rocm;
the loader silently skips $ORIGIN entries whose directories don't exist. Also
pin the hermetic build ROCm to the image's TheRock version via ROCM_DISTRO_URL
so the wheel's ROCm SONAMEs match the runtime image.
@psanal35 psanal35 force-pushed the test-cap-xdist-workers-per-gpu branch from 15ebab9 to 19d6967 Compare June 19, 2026 19:31
@psanal35 psanal35 force-pushed the test-cap-xdist-workers-per-gpu branch from 19d6967 to 31ccdef Compare June 19, 2026 19:32
@psanal35 psanal35 force-pushed the test-cap-xdist-workers-per-gpu branch from 31ccdef to 63140c7 Compare June 19, 2026 19:33
@mminutoli mminutoli force-pushed the amd-main branch 3 times, most recently from 3f9e8b4 to f25f2b4 Compare June 27, 2026 01:32
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.

3 participants