mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
Added explicit build command for Windows and clarification on obtaining (#70190)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/70190 C++ build tools to readme.md Test Plan: Imported from OSS Reviewed By: jbschlosser Differential Revision: D33245438 Pulled By: ikriv fbshipit-source-id: ef863d68926bd7416d0e10d24197d19392c124de
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e67570f3a
commit
bc3246453b
10
README.md
10
README.md
@@ -262,13 +262,21 @@ Choose Correct Visual Studio Version.
|
||||
|
||||
Sometimes there are regressions in new versions of Visual Studio, so
|
||||
it's best to use the same Visual Studio Version [16.8.5](https://github.com/pytorch/pytorch/blob/master/.circleci/scripts/vs_install.ps1) as Pytorch CI's.
|
||||
You can use Visual Studio Enterprise, Professional or Community though PyTorch CI uses Visual Studio BuildTools.
|
||||
|
||||
PyTorch CI uses Visual C++ BuildTools, which come with Visual Studio Enterprise,
|
||||
Professional, or Community Editions. You can also install the build tools from
|
||||
https://visualstudio.microsoft.com/visual-cpp-build-tools/. The build tools *do not*
|
||||
come with Visual Studio Code by default.
|
||||
|
||||
If you want to build legacy python code, please refer to [Building on legacy code and CUDA](https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md#building-on-legacy-code-and-cuda)
|
||||
|
||||
Build with CPU
|
||||
|
||||
It's fairly easy to build with CPU.
|
||||
```cmd
|
||||
conda activate
|
||||
python setup.py install
|
||||
```
|
||||
|
||||
Note on OpenMP: The desired OpenMP implementation is Intel OpenMP (iomp). In order to link against iomp, you'll need to manually download the library and set up the building environment by tweaking `CMAKE_INCLUDE_PATH` and `LIB`. The instruction [here](https://github.com/pytorch/pytorch/blob/master/docs/source/notes/windows.rst#building-from-source) is an example for setting up both MKL and Intel OpenMP. Without these configurations for CMake, Microsoft Visual C OpenMP runtime (vcomp) will be used.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user