Skip to content

Add libcurand-dev to CUDA Docker image for cuda-windows CI#19183

Merged
Gasoonjia merged 2 commits intomainfrom
fix-cuda-windows-ci-deps
Apr 28, 2026
Merged

Add libcurand-dev to CUDA Docker image for cuda-windows CI#19183
Gasoonjia merged 2 commits intomainfrom
fix-cuda-windows-ci-deps

Conversation

@Gasoonjia
Copy link
Copy Markdown
Contributor

Commit c1731fd added CUDA::curand as a CMake dependency in backends/cuda/CMakeLists.txt for the new GPU-side sampling shim (rand.cu). However, the CI Docker image (install_cuda.sh) did not include libcurand-dev, so the CMake build during pip install fails when EXECUTORCH_BUILD_CUDA=ON is auto-detected. This causes executorch to not be installed at all, breaking the dinov2 export (No module named 'executorch') and parakeet export (No module named 'torchaudio', since torchaudio installation is skipped when the prior pip install step fails) in the cuda-windows CI workflow.

Commit c1731fd added CUDA::curand as a CMake dependency in
backends/cuda/CMakeLists.txt for the new GPU-side sampling shim (rand.cu).
However, the CI Docker image (install_cuda.sh) did not include
libcurand-dev, so the CMake build during pip install fails when
EXECUTORCH_BUILD_CUDA=ON is auto-detected. This causes executorch to not
be installed at all, breaking the dinov2 export (No module named
'executorch') and parakeet export (No module named 'torchaudio', since
torchaudio installation is skipped when the prior pip install step fails)
in the cuda-windows CI workflow.
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 28, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19183

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 2 New Failures, 5 Cancelled Jobs, 1 Pending

As of commit 732058b with merge base 831b7d4 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 28, 2026
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@Gasoonjia Gasoonjia merged commit ea69046 into main Apr 28, 2026
218 of 232 checks passed
@Gasoonjia Gasoonjia deleted the fix-cuda-windows-ci-deps branch April 28, 2026 18:02
psiddh pushed a commit to psiddh/executorch that referenced this pull request Apr 28, 2026
…9183)

Commit c1731fd added CUDA::curand as a CMake dependency in
backends/cuda/CMakeLists.txt for the new GPU-side sampling shim
(rand.cu). However, the CI Docker image (install_cuda.sh) did not
include libcurand-dev, so the CMake build during pip install fails when
EXECUTORCH_BUILD_CUDA=ON is auto-detected. This causes executorch to not
be installed at all, breaking the dinov2 export (No module named
'executorch') and parakeet export (No module named 'torchaudio', since
torchaudio installation is skipped when the prior pip install step
fails) in the cuda-windows CI workflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/cuda CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants