Skip to content
27 changes: 27 additions & 0 deletions docs/install/from_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,18 @@ The following commands can be used to install the extra Python dependencies:
pip3 install tornado psutil 'xgboost>=1.1.0' cloudpickle


.. _windows-build-notes:

Windows-Specific Build Notes
----------------------------

If you're building TVM on Windows, note these platform-specific considerations:

Path Conventions
................
- Use forward slashes (``/``) in Python/CMake paths, not Windows backslashes
- Example: ``python cmake/config.cmake`` not ``python cmake\\config.cmake``

Advanced Build Configuration
----------------------------

Expand Down Expand Up @@ -275,6 +287,21 @@ You can then run the following command to build

cmake --build build --config Release -- /m

CUDA Configuration
..................
For CUDA support on Windows:

.. code-block:: batch

set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
set PATH=%CUDA_PATH%\bin;%PATH%
cmake .. -DUSE_CUDA=ON

CMake & Compiler Setup
......................
- Specify generator: ``cmake -G "Visual Studio 16 2019" -A x64 ..``
- Ensure Python is in PATH or specify: ``-DPython_EXECUTABLE=C:\Python39\python.exe``


Building ROCm support
~~~~~~~~~~~~~~~~~~~~~
Expand Down