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
This commit is contained in:
aeioaeu
2021-08-04 12:52:00 -07:00
committed by Facebook GitHub Bot
parent b454275f47
commit 89f898ebb5

View File

@ -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