Skip to content

Commit

Permalink
Modify cmake instruction in build from source (ROCm#1445)
Browse files Browse the repository at this point in the history
(cherry picked from commit 28594b2)
  • Loading branch information
amd-jnovotny committed Dec 6, 2024
1 parent 6729d9e commit 6dd78bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $ git submodule update --init --recursive --depth=1
```
You may substitute an installation path of your own choosing by passing `CMAKE_INSTALL_PREFIX`. For example:
```shell
$ cmake -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install ..
$ cmake -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install -DCMAKE_BUILD_TYPE=Release ..
```
Note: ensure rocm-cmake is installed, `apt install rocm-cmake`.
Expand Down
5 changes: 3 additions & 2 deletions docs/install/building-installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ to ``CMAKE_INSTALL_PREFIX``, for example:

.. code-block:: shell
cmake -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install ..
cmake -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install -DCMAKE_BUILD_TYPE=Release ..
.. note::

Ensure ROCm CMake is installed using the command ``apt install rocm-cmake``.
Ensure ROCm CMake is installed using the command ``apt install rocm-cmake``. By default,
CMake builds the component in debug mode unless ``DCMAKE_BUILD_TYPE`` is specified.


Building the RCCL package and install package:
Expand Down

0 comments on commit 6dd78bd

Please sign in to comment.