From 89f898ebb5480a77930f37e211394a1cc38c306f Mon Sep 17 00:00:00 2001 From: aeioaeu <36494953+aeioaeu@users.noreply.github.com> Date: Wed, 4 Aug 2021 12:52:00 -0700 Subject: [PATCH] Fix wrong command in README.md (#62472) Summary: If it is `[15^,16^)`, 16.10 is not included. https://github.com/Microsoft/vswhere/wiki/Examples Fixes #{issue number} Pull Request resolved: https://github.com/pytorch/pytorch/pull/62472 Reviewed By: nairbv Differential Revision: D30103199 Pulled By: ezyang fbshipit-source-id: 82085627ca53cd5a4e666848d27d4ab062de8352 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a9a19c898b..53ebfb1a4be 100644 --- a/README.md +++ b/README.md @@ -301,7 +301,7 @@ set CMAKE_GENERATOR=Visual Studio 16 2019 :: Make sure you have CMake >= 3.12 before you do this when you use the Visual Studio generator. set CMAKE_GENERATOR_TOOLSET_VERSION=14.27 set DISTUTILS_USE_SDK=1 -for /f "usebackq tokens=*" %i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [15^,16^) -products * -latest -property installationPath`) do call "%i\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION% +for /f "usebackq tokens=*" %i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [15^,17^) -products * -latest -property installationPath`) do call "%i\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION% :: [Optional] If you want to override the CUDA host compiler set CUDAHOSTCXX=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.exe