[Docker Release] Test if pytorch was compiled with CUDA before pushing to repo#128852
[Docker Release] Test if pytorch was compiled with CUDA before pushing to repo#128852atalman wants to merge 3 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/128852
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 758deb0 with merge base a87d82a ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ab75991 to
9cc60d8
Compare
| esac && \ | ||
| /opt/conda/bin/conda clean -ya | ||
| RUN /opt/conda/bin/pip install torchelastic | ||
| RUN IS_CUDA=$(python -c 'import torch ; print(torch.cuda._is_compiled())'); \ |
There was a problem hiding this comment.
What if user wants to build CPU docker version? Should we somehow map IS_CUDA to say INSTALL_CHANNEL to figure out whether we want cu or cpu versions?
There was a problem hiding this comment.
Done. Added check
if test "${IS_CUDA}" != "True" -a ! -z "${CUDA_VERSION}"; then \
exit 1; \
fi
|
@pytorchmergebot merge -f "lint is green, cuda 12.4 failures are expected" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Related to: #125879
Would check if we are compiled with CUDA before publishing CUDA Docker nightly image
Test
Please note looks like we are installing from pytorch rather then nighlty channel on PR hence cuda 12.4 is failing since its not in pytorch channel yet:
https://github.com/pytorch/pytorch/actions/runs/9555354734/job/26338476741?pr=128852