Skip to content

Commit 2b867d3

Browse files
authored
Fix Windows CI for Release 2.7 (#3505) (#3506)
1 parent 26a7d32 commit 2b867d3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/scripts/install-torch-tensorrt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PLATFORM=$(python -c "import sys; print(sys.platform)")
66

77
# Install all the dependencies required for Torch-TensorRT
88
pip install --pre ${TORCH_TORCHVISION} --index-url ${INDEX_URL}
9-
pip install --pre -r ${PWD}/tests/py/requirements.txt --use-deprecated legacy-resolver
9+
pip install --pre -r ${PWD}/tests/py/requirements.txt
1010

1111
# Install Torch-TensorRT
1212
if [[ ${PLATFORM} == win32 ]]; then

packaging/driver_upgrade.bat

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
REM Source: https://github.com/pytorch/builder/blob/4e109742d88ff3c85e77d60bc4d90d229d7f6afe/windows/internal/driver_update.bat
2-
3-
set "DRIVER_DOWNLOAD_LINK=https://ossci-windows.s3.amazonaws.com/528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe"
4-
curl --retry 3 -kL %DRIVER_DOWNLOAD_LINK% --output 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe
1+
set WIN_DRIVER_VN=528.89
2+
set "DRIVER_DOWNLOAD_LINK=https://ossci-windows.s3.amazonaws.com/%WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe"
3+
curl --retry 3 -kL %DRIVER_DOWNLOAD_LINK% --output %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe
54
if errorlevel 1 exit /b 1
65

7-
start /wait 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe -s -noreboot
6+
start /wait %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe -s -noreboot
87
if errorlevel 1 exit /b 1
98

10-
del 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe || ver > NUL
9+
del %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe || ver > NUL

0 commit comments

Comments
 (0)