@@ -49,8 +49,13 @@ set "PATH=%CD%\Python%PYTHON_VERSION%\Scripts;%CD%\Python%PYTHON_VERSION%;%PATH%
49
49
pip install -q future numpy protobuf six " mkl>=2019"
50
50
if errorlevel 1 exit /b 1
51
51
52
- for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *.whl') do pip install " %%i "
53
- if errorlevel 1 exit /b 1
52
+ if " %TEST_NIGHTLY_PACKAGE% " == " 1" (
53
+ call internal\install_nightly_package.bat
54
+ if errorlevel 1 exit /b 1
55
+ ) else (
56
+ for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *.whl') do pip install " %%i "
57
+ if errorlevel 1 exit /b 1
58
+ )
54
59
55
60
goto smoke_test
56
61
@@ -79,16 +84,22 @@ if errorlevel 1 exit /b 1
79
84
call conda install -yq future numpy protobuf six
80
85
if ERRORLEVEL 1 exit /b 1
81
86
82
- for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *.tar.bz2') do call conda install -y " %%i " --offline
83
- if ERRORLEVEL 1 exit /b 1
84
-
85
- if " %CUDA_VERSION% " == " cpu" goto install_cpu_torch
86
-
87
87
set /a CUDA_VER = %CUDA_VERSION%
88
88
set CUDA_VER_MAJOR = %CUDA_VERSION:~0 ,-1 %
89
89
set CUDA_VER_MINOR = %CUDA_VERSION:~-1 ,1 %
90
90
set CUDA_VERSION_STR = %CUDA_VER_MAJOR% .%CUDA_VER_MINOR%
91
91
92
+ if " %TEST_NIGHTLY_PACKAGE% " == " 1" (
93
+ call internal\install_nightly_package.bat
94
+ if errorlevel 1 exit /b 1
95
+ goto smoke_test
96
+ )
97
+
98
+ for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *.tar.bz2') do call conda install -y " %%i " --offline
99
+ if ERRORLEVEL 1 exit /b 1
100
+
101
+ if " %CUDA_VERSION% " == " cpu" goto install_cpu_torch
102
+
92
103
if " %CUDA_VERSION_STR% " == " 9.2" (
93
104
call conda install -y " cudatoolkit=%CUDA_VERSION_STR% " -c pytorch -c defaults -c numba/label/dev
94
105
) else (
@@ -138,8 +149,13 @@ echo "install and test libtorch"
138
149
if " %VC_YEAR% " == " 2017" powershell internal\vs2017_install.ps1
139
150
if ERRORLEVEL 1 exit /b 1
140
151
141
- for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *-latest.zip') do 7z x " %%i " -otmp
142
- if ERRORLEVEL 1 exit /b 1
152
+ if " %TEST_NIGHTLY_PACKAGE% " == " 1" (
153
+ call internal\install_nightly_package.bat
154
+ if errorlevel 1 exit /b 1
155
+ ) else (
156
+ for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *-latest.zip') do 7z x " %%i " -otmp
157
+ if ERRORLEVEL 1 exit /b 1
158
+ )
143
159
144
160
pushd tmp\libtorch
145
161
0 commit comments