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
Now, we will walk you through a step-by-step tutorial for how to use torchinductor on Windows CPU.
25
20
26
-
Install the Required Software
27
-
-------------------------------------------
21
+
Install a Compiler
22
+
^^^^^^^^^^^^^^^^^^
28
23
29
-
First, let's install the required software. C++ compiler is required for TorchInductor optimization.
30
-
We will use Microsoft Visual C++ (MSVC) for this example.
24
+
C++ compiler is required for torchinductor optimization, let's take Microsoft Visual C++ (MSVC) as an example.
31
25
32
-
1. Download and install `MSVC <https://visualstudio.microsoft.com/downloads/>`_.
26
+
Download and install `MSVC <https://visualstudio.microsoft.com/downloads/>`_.
33
27
34
-
2. During the installation, choose **Desktop Development with C++** in the **Desktop & Mobile** section. Then install the software
28
+
During Installation, chosse `Desktop Development with C++` in the `Desktop & Mobile` Section and then install.
35
29
36
30
.. note::
37
31
38
-
We recommend C++ compiler `Clang <https://github.com/llvm/llvm-project/releases>`_ and `Intel Compiler <https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html>`_.
32
+
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
+
Please check Alternative Compiler for better performance:`my-reference-label`.
39
34
35
+
.. _my-reference-label:
40
36
41
-
3. Download and install `Miniforge3-Windows-x86_64.exe <https://github.com/conda-forge/miniforge/releases/latest/>`__.
37
+
Alternative Compiler for better performance
38
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
39
43
-
Set Up the Environment
44
-
------------------------------
40
+
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.
45
41
46
-
#. Open the command line environment via ``cmd.exe``.
47
-
#. Activate `MSVC` with the following command::
42
+
Intel Compiler
43
+
~~~~~~~~~~~~~~
44
+
#. Download and install `Intel Compiler <https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html>`_ with Windows version.
45
+
#. Set environment variable for compiler `CXX=icx-cl`
0 commit comments