Skip to content

Commit d464858

Browse files
suosoumith
authored andcommitted
add windows tip to cpp tutorials (#418)
* add windows tip to cpp tutorials * fix spacing
1 parent 8aefdf5 commit d464858

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

advanced_source/cpp_export.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ structure:
214214
- The ``include/`` folder contains header files your program will need to include,
215215
- The ``share/`` folder contains the necessary CMake configuration to enable the simple ``find_package(Torch)`` command above.
216216

217+
.. tip::
218+
On Windows, debug and release builds are not ABI-compatible. If you plan to
219+
build your project in debug mode, we recommend
220+
`building PyTorch from source <https://github.com/pytorch/pytorch#from-source>`_.
221+
217222
The last step is building the application. For this, assume our example
218223
directory is laid out like this:
219224

advanced_source/cpp_frontend.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ environment, however you are free to follow along on MacOS or Windows too.
102102
<https://pytorch.org/cppdocs/installing.html>`_ describes the following steps
103103
in more detail.
104104

105+
.. tip::
106+
On Windows, debug and release builds are not ABI-compatible. If you plan to
107+
build your project in debug mode, we recommend
108+
`building PyTorch from source <https://github.com/pytorch/pytorch#from-source>`_.
109+
105110
The first step is to download the LibTorch distribution locally, via the link
106111
retrieved from the PyTorch website. For a vanilla Ubuntu Linux environment, this
107112
means running:

0 commit comments

Comments
 (0)