8000 Update CMake to 3.27 in Windows CI (#153380) · pytorch/pytorch@781ba0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 781ba0a

Browse files
cyyeverpytorchmergebot
authored andcommitted
Update CMake to 3.27 in Windows CI (#153380)
Before it's possible to use enable newer CMake. Pull Request resolved: #153380 Approved by: https://github.com/albanD
1 parent c2bc7e2 commit 781ba0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.ci/pytorch/win-test-helpers/build_pytorch.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ call %INSTALLER_DIR%\activate_miniconda3.bat
3737
if errorlevel 1 goto fail
3838
if not errorlevel 0 goto fail
3939

40+
:: Update CMake
41+
call choco upgrade -y cmake --no-progress --installargs 'ADD_CMAKE_TO_PATH=System' --apply-install-arguments-to-dependencies --version=3.27.9
42+
if errorlevel 1 goto fail
43+
if not errorlevel 0 goto fail
44+
4045
call pip install mkl-include==2021.4.0 mkl-devel==2021.4.0
4146
if errorlevel 1 goto fail
4247
if not errorlevel 0 goto fail
@@ -88,7 +93,7 @@ set PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PATH%
8893
:cuda_build_end
8994

9095
set DISTUTILS_USE_SDK=1
91-
set PATH=%TMP_DIR_WIN%\bin;%PATH%
96+
set PATH=%TMP_DIR_WIN%\bin;C:\Program Files\CMake\bin;%PATH%
9297

9398
:: The latest Windows CUDA test is running on AWS G5 runner with A10G GPU
9499
if "%TORCH_CUDA_ARCH_LIST%" == "" set TORCH_CUDA_ARCH_LIST=8.6

0 commit comments
Comments
 (0)

0