Skip to content

Commit e40b266

Browse files
committed
update inductor_windows
1 parent 8cac362 commit e40b266

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

_static/img/install_msvc.png

131 KB
Loading

prototype_source/inductor_windows.rst

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,41 +20,30 @@ Now, we will walk you through a step-by-step tutorial for how to use ``torch.com
2020
Install a Compiler
2121
^^^^^^^^^^^^^^^^^^
2222

23-
C++ compiler is required for torchinductor optimization, let's take Microsoft Visual C++ (MSVC) as an example.
23+
C++ compiler is required for TorchInductor optimization, let's take Microsoft Visual C++ (MSVC) as an example.
2424

2525
Download and install `MSVC <https://visualstudio.microsoft.com/downloads/>`_.
2626

2727
During Installation, select ``Workloads`` table then ``Desktop & Mobile`` Section, check mark on ``Desktop Development with C++`` and then install.
2828

29+
.. image:: ../_static/img/install_msvc.png
30+
31+
2932
.. note::
3033

3134
Windows CPU inductor also support C++ compiler `LLVM Compiler <https://github.com/llvm/llvm-project/releases>`_ and `Intel Compiler <https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html>`_ for better performance.
3235
Please check `Alternative Compiler for better performance on CPU <#alternative-compiler-for-better-performance>`_.
3336

34-
Conda Installation
35-
^^^^^^^^^^^^^^^^^^
36-
37-
Prepare Conda Environment by Miniforge or Anaconda.
38-
For example, download and install `Miniforge <https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe>`_.
39-
4037
Set Up Environment
4138
^^^^^^^^^^^^^^^^^^
4239

4340
#. Open a command line environment via cmd.exe.
4441
#. Activate ``MSVC`` via below command::
4542
4643
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat"
47-
#. Activate ``conda`` via below command::
48-
49-
"C:/ProgramData/miniforge3/Scripts/activate.bat"
50-
#. Create and activate customer conda environment::
51-
52-
conda create -n inductor_windows python=3.10 -y
53-
#. Activate customer conda environment::
54-
55-
conda activate inductor_windows
44+
#. Create and activate a virtualvirtual environment::
5645
#. Install `PyTorch 2.5 <https://pytorch.org/get-started/locally/>`_ or later for CPU Usage. Install PyTorch 2.7 or later refer to `Getting Started on Intel GPU <https://pytorch.org/docs/main/notes/get_start_xpu.html>`_ for XPU usage.
57-
#. Use torchinductor on Windows::
46+
#. Use TorchInductor on Windows::
5847

5948
import torch
6049
device="cpu" # or "xpu" for XPU

0 commit comments

Comments
 (0)