Repository navigation
Ask for nvidia-npp on CUDA 13, not the retired nvidia-npp-cu13 stub - #10589
danielhanchen wants to merge 1 commit into
Conversation
NVIDIA retired the per-major nvidia-npp-cuNN names at CUDA 13. nvidia-npp-cu13 on
PyPI is now a deprecation stub: its only release, 0.0.1, ships no wheel and its sdist
build backend raises on purpose, printing "THIS PROJECT 'nvidia-npp-cu13' IS
DEPRECATED. Please use 'nvidia-npp' instead". So the torchcodec NPP step did not skip,
it attempted a source build and failed, and the clean-machine job rejects the source
build outright.
That currently breaks the aarch64 install path on main. torchcodec has no aarch64
wheel on download.pytorch.org, so the installer falls back to the default index and
lands the generic wheel, which links CUDA 13; the NPP step then asks for
nvidia-npp-cu13. On x86_64 the pinned torchcodec resolves from the pytorch index and
the step is never reached, which is why only the ARM leg is red.
Add _npp_requirement: CUDA 12 and earlier keep nvidia-npp-cu{major}, which is still
published, and CUDA 13 and later ask for nvidia-npp>={major},<{major+1}, whose own
major is the CUDA major. Bounded above so a future CUDA 14 wheel cannot satisfy a
CUDA 13 torch. nvidia-npp 13.1.2.81 publishes manylinux_2_27_aarch64, x86_64 and
win_amd64 wheels.
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent corroboration from the #10280 side, where this leg is the only red check. I reached the same root cause separately, before seeing this PR, which is worth stating plainly: two unrelated investigations converging on it is stronger evidence than either alone. The same
both ending The half I would add to the write-up. On PyPI
The upper bound on |
|
Duplicate of #10587, which is older and covers two cases this one does not: the silent --only-binary path that installs the 0.0.0a0 placeholder, and the fact that the suffix drop is false for nvidia-cudnn and nvidia-nccl. Closing in favour of it. Evidence from here, including the staging run where linux ubuntu2404-arm-root goes green, is posted on #10587. |
maincurrently cannot complete a clean install on aarch64. Thelinux ubuntu2404-arm-rootleg ofClean machine installhas been failing onmainitself, with no PR involved:5177a5b1d, sole failing joblinux ubuntu2404-arm-rootThe failing step:
Cause
NVIDIA retired the per-major
nvidia-npp-cuNNnames at CUDA 13.nvidia-npp-cu13on PyPI is now a deprecation stub: its only release,0.0.1(uploaded 2025-10-31), publishes no wheel at all, only an sdist whose build backend raises on purpose. So the torchcodec NPP step does not merely miss the package, it attempts a source build and fails, and the clean-machine assertion rejects the source build outright.It bites aarch64 only, which is why the break is easy to miss:
torchcodec>=0.11.0,<0.12.0has no aarch64 wheel ondownload.pytorch.org/whl/cpu, so the installer falls back to the default index and lands the generictorchcodec==0.11.1, which links CUDA 13.nvidia-npp-cu13.aarch64 is DGX Spark, so this affects every Spark install, not just CI.
Fix
Add
_npp_requirement, one place that maps a CUDA major to the distribution that actually exists:nvidia-npp-cu{major}, which is still published and current (nvidia-npp-cu1212.4.1.87).nvidia-npp>={major},<{major+1}. The replacement distribution's own major is the CUDA major, so the major moves out of the name and into the specifier. Bounded above so a future CUDA 14 wheel cannot satisfy a CUDA 13 torch.docker/Dockerfileis untouched: it installsnvidia-npp-cu12, which is on the unchanged branch.Verification
nvidia-npp13.1.2.81 publishes the wheels this needs, including aarch64:Installed on an aarch64 GB10 host, it lays down exactly the libraries torchcodec's CUDA build dlopens, under
nvidia/cu13/lib/:libnppc,libnppif,libnppig,libnppim,libnppist,libnppisu,libnppitc, all.so.13.Resolution on aarch64, for contrast:
Tests
test_cuda_13_asks_for_nvidia_npp_not_the_retired_cu13_namecovers the mapping in both directions, that the retired name cannot appear for major 13 or later, that the range is bounded above, and that an empty major still asks for nothing.test_a_cuda_index_codec_also_installs_nppis updated to the new call site. Both fail against the currentmainand pass here; the file's other 88 tests are unchanged and still pass.Minimal and self-contained: this only explains the red aarch64 CI seen on other branches, it does not depend on any of them.