You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prototype_source/inductor_windows.rst
+6-17Lines changed: 6 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,41 +20,30 @@ Now, we will walk you through a step-by-step tutorial for how to use ``torch.com
20
20
Install a Compiler
21
21
^^^^^^^^^^^^^^^^^^
22
22
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.
24
24
25
25
Download and install `MSVC <https://visualstudio.microsoft.com/downloads/>`_.
26
26
27
27
During Installation, select ``Workloads`` table then ``Desktop & Mobile`` Section, check mark on ``Desktop Development with C++`` and then install.
28
28
29
+
.. image:: ../_static/img/install_msvc.png
30
+
31
+
29
32
.. note::
30
33
31
34
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.
32
35
Please check `Alternative Compiler for better performance on CPU <#alternative-compiler-for-better-performance>`_.
33
36
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>`_.
#. 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::
56
45
#. 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.
0 commit comments