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_cpu.rst
+20-17Lines changed: 20 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ TorchInductor is the new compiler backend that compiles the FX Graphs generated
12
12
This tutorial introduces the steps for utilizing TorchInductor on Windows CPU.
13
13
14
14
15
-
16
15
Software Installation
17
16
---------------------
18
17
@@ -32,21 +31,6 @@ During Installation, chosse `Desktop Development with C++` in the `Desktop & Mob
32
31
Windows 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.
33
32
Please check `Alternative Compiler for better performance <#alternative-compiler-for-better-performance>`_.
34
33
35
-
Alternative Compiler for better performance
36
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
-
38
-
To enhance performance on Windows inductor, you can use the Intel Compiler or LLVM Compiler. However, windows inductor rely on the runtime libraries from Microsoft Visual C++ (MSVC). Therefore, your first step should be to install MSVC.
39
-
40
-
Intel Compiler
41
-
~~~~~~~~~~~~~~
42
-
#. Download and install `Intel Compiler <https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html>`_ with Windows version.
43
-
#. Set compiler `CXX=icx-cl`
44
-
45
-
LLVM Compiler
46
-
~~~~~~~~~~~~~
47
-
#. Download and install `LLVM Compiler <https://github.com/llvm/llvm-project/releases>`_ with Windows version.
48
-
#. Set compiler `CXX=clang-cl`
49
-
50
34
Install Miniforge
51
35
^^^^^^^^^^^^^^^^^
52
36
@@ -65,6 +49,8 @@ Set Up Environment
65
49
#. Create and activate customer conda environment::
To enhance performance on Windows inductor, you can use the Intel Compiler or LLVM Compiler. However, windows inductor rely on the runtime libraries from Microsoft Visual C++ (MSVC). Therefore, your first step should be to install MSVC.
93
+
94
+
Intel Compiler
95
+
^^^^^^^^^^^^^^
96
+
97
+
#. Download and install `Intel Compiler <https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html>`_ with Windows version.
98
+
#. Set compiler `CXX=icx-cl`
99
+
100
+
LLVM Compiler
101
+
^^^^^^^^^^^^^
102
+
103
+
#. Download and install `LLVM Compiler <https://github.com/llvm/llvm-project/releases>`_ with Windows version.
104
+
#. Set compiler `CXX=clang-cl`
105
+
103
106
Conclusion
104
107
----------
105
108
106
-
With this tutorial, we introduce how to use Inductor on Windows CPU with PyTorch 2.5 or later.
109
+
With this tutorial, we introduce how to use Inductor on Windows CPU with PyTorch 2.5 or later. We can use Intel Compiler or LLVM Compiler to get better performance.
0 commit comments