Fix release wheel CUDA index calculation#3100
Conversation
Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
1ab88b9 to
0cebce7
Compare
Greptile SummaryThis PR fixes a Python
Confidence Score: 5/5Safe to merge — the change is a targeted fix to a broken Python expression inside a Dockerfile RUN step, with no functional logic changes. The old multi-line No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Docker RUN step] --> B[Extract MATRIX_CUDA_VERSION via awk]
B --> C[Extract MATRIX_TORCH_VERSION via awk]
C --> D[Python one-liner: lookup versions dict]
D --> E{MATRIX_CUDA_VERSION less than 120?}
E -- Yes: CUDA 11.x --> F[Use minv e.g. cu118 or cu126]
E -- No: CUDA 12.x --> G[Use maxv e.g. cu124 to cu130]
F --> H[pip install torch with cu index URL]
G --> H
Reviews (1): Last reviewed commit: "Fix release wheel CUDA index calculation" | Re-trigger Greptile |
Summary
Validation
git diff --check -- .github/actions/build-pytorch-wheel/Dockerfile