Skip to content

ci: align pytorch version requirements in wheel build#99

Open
tongke6 wants to merge 4 commits into
inclusionAI:mainfrom
tongke6:main
Open

ci: align pytorch version requirements in wheel build#99
tongke6 wants to merge 4 commits into
inclusionAI:mainfrom
tongke6:main

Conversation

@tongke6

@tongke6 tongke6 commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

📌 Description

ci: align pytorch version requirements in wheel build

🔍 Related Issues

#83

🚀 Pull Request Checklist

Thank you for contributing to cuLA! Before we review your pull request, please make sure the following items are complete.

✅ Pre-commit Checks

  • I have installed pre-commit by running pip install pre-commit (or used your preferred method).
  • I have installed the hooks with pre-commit install.
  • I have run the hooks manually with pre-commit run --all-files and fixed any reported issues.

If you are unsure about how to set up pre-commit, see the pre-commit documentation.

🧪 Tests

  • Tests have been added or updated as needed.
  • All tests are passing.

⚡ Performance

Reviewer Notes

tongke6 added 4 commits June 24, 2026 16:19
The nvidia/cuda devel container images include the CUDA toolkit but not
cuDNN. When torch is installed via pip, nvidia-cudnn-cu12 (and friends)
land in site-packages/nvidia/*/lib/, which is not on the system library
search path. This causes an ImportError for libcudnn.so.9 when the
build backend tries to import torch.

Add a step that discovers all PyTorch and NVIDIA pip package library
directories and appends them to LD_LIBRARY_PATH via GITHUB_ENV, with
a validation check that libcudnn.so.9 is actually found.
Verified working in CI — drop debug logging, redundant validation,
and heredoc in favor of a compact inline python -c one-liner.
The previous 1-liner broke because single quotes inside
$(python3.12 -c '...') conflicted with the outer shell quoting.
Switch to a heredoc (<<'EOF') for the Python snippet, which avoids
nested quoting entirely and keeps the code readable.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@tongke6 tongke6 requested review from icavan and zheyang0825 June 24, 2026 11:01

@zheyang0825 zheyang0825 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

2 participants