-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable GPU support for generic Windows job #4104
Conversation
This reverts commit 4571c6b.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corresponding vision PR: pytorch/vision#7555
@@ -126,12 +135,20 @@ jobs: | |||
echo "/c/Jenkins/Miniconda3/python.exe -m pip install --upgrade pywin32==300" | |||
# Source conda so it's available to the script environment | |||
echo "source /c/Jenkins/Miniconda3/etc/profile.d/conda.sh"; | |||
echo "${SCRIPT}"; | |||
} > "${RUNNER_TEMP}/exec_script" | |||
echo 'export PATH="/c/Jenkins/Miniconda3/Scripts:${PATH}"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout: 60 | ||
script: | | ||
conda create --yes --quiet -n test python=3.8 | ||
conda activate test | ||
python -m pip install --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --pre torch | ||
python -m pip install ---index-url=https://download.pytorch.org/whl/nightly/cu117 --pre torch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem here was that the CUDA 11.6 index no longer has any torch
binaries. Since we additionally used --extra-index-url
, we pulled the wheel from PyPI: https://github.com/pytorch/test-infra/actions/runs/4883695947/jobs/8715408340?pr=4104#step:9:86
And the Windows wheel on PyPI is not built against CUDA.
This is not related to this PR other than this PR triggered this test.
The Linux job has these inputs to control the GPU support:
test-infra/.github/workflows/linux_job.yml
Lines 50 to 57 in 92814df
They were missing before from the Windows job. Without them, users are forced to use workarounds.
This PR adds them to the Windows job as well. Since we have multiple versions of CUDA already present on the AMI, we only need to set some paths.