Add ROCm documentation to libtorch (C++) reST. (#136378)

Fixes #126640

Added ROCm support section to libtorch (C++) reST.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/136378
Approved by: https://github.com/ezyang
This commit is contained in:
Nichols A. Romero
2024-09-25 02:30:54 +00:00
committed by PyTorch MergeBot
parent 3c7edf1ec0
commit 482fe186b9

View File

@ -5,6 +5,18 @@ The core of pytorch does not depend on Python. A
CMake-based build system compiles the C++ source code into a shared
object, libtorch.so.
AMD ROCm Support
------------------------------
If you're compiling for AMD ROCm then first run this command:
::
cd <pytorch_root>
# Only run this if you're compiling for ROCm
python tools/amd_build/build_amd.py
Additional information about ROCm support can be found in the top-level
`README <https://github.com/pytorch/pytorch/blob/main/README.md>`_.
Building libtorch using Python
------------------------------