Skip to content

Commit 4df70a7

Browse files
committed
update inductor windows cpu
1 parent d1a98df commit 4df70a7

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

prototype_source/inductor_windows_cpu.rst

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ During Installation, chosse `Desktop Development with C++` in the `Desktop & Mob
2929

3030
.. note::
3131

32-
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>`_.
33-
Intel compiler setup guide(TODO: Intel will provide URL for this guide recently)
32+
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>`_.
33+
Please follow `Intel compiler setup guide <empty link>`_. (TODO: Intel will provide URL for this guide recently)
3434

3535

3636
Install Miniforge
@@ -41,29 +41,19 @@ Download and install `Miniforge <https://github.com/conda-forge/miniforge/releas
4141
Set Up Environment
4242
^^^^^^^^^^^^^^^^^^
4343

44-
1. Open a command line environment via cmd.exe.
45-
46-
2. Activate `MSVC` via below command:
47-
::
44+
#. Open a command line environment via cmd.exe.
45+
#. Activate `MSVC` via below command::
4846

4947
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat"
50-
51-
1. Activate `conda` via below command:
52-
::
48+
#. Activate `conda` via below command::
5349

5450
"C:/ProgramData/miniforge3/Scripts/activate.bat"
55-
56-
1. Create and activate customer conda environment:
57-
::
51+
#. Create and activate customer conda environment::
5852

5953
conda create -n inductor_cpu_windows python=3.10 -y
6054
conda activate inductor_cpu_windows
61-
62-
1. Install `PyTorch 2.5 <https://pytorch.org/get-started/locally/>`_ or later.
63-
64-
2. Try `torchinductor` on Windows CPU:
65-
::
66-
55+
#. Install `PyTorch 2.5 <https://pytorch.org/get-started/locally/>`_ or later.
56+
#. Try `torchinductor` on Windows CPU::
6757
import torch
6858
def foo(x, y):
6959
a = torch.sin(x)
@@ -72,8 +62,7 @@ Set Up Environment
7262
opt_foo1 = torch.compile(foo)
7363
print(opt_foo1(torch.randn(10, 10), torch.randn(10, 10)))
7464

75-
output of the above example.
76-
::
65+
#. Output of the above example::
7766

7867
tensor([[-3.9074e-02, 1.3994e+00, 1.3894e+00, 3.2630e-01, 8.3060e-01,
7968
1.1833e+00, 1.4016e+00, 7.1905e-01, 9.0637e-01, -1.3648e+00],

0 commit comments

Comments
 (0)