From 314da5a4850b5a23ba9d868926ec6e8637583672 Mon Sep 17 00:00:00 2001 From: Wenkai Du <43822138+wenkaidu@users.noreply.github.com> Date: Tue, 12 Jul 2022 11:32:07 -0700 Subject: [PATCH] README.md: add CMAKE_PREFIX_PATH to build steps (#581) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e0026476a9..5abf1a50f3 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,12 @@ $ git clone https://github.com/ROCmSoftwarePlatform/rccl.git $ cd rccl $ mkdir build $ cd build -$ CXX=/opt/rocm/bin/hipcc cmake .. -$ make -j 8 +$ CXX=/opt/rocm/bin/hipcc cmake -DCMAKE_PREFIX_PATH=/opt/rocm/ .. +$ make -j ``` You may substitute an installation path of your own choosing by passing CMAKE_INSTALL_PREFIX. For example: ```shell -$ CXX=/opt/rocm/bin/hipcc cmake -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install .. +$ CXX=/opt/rocm/bin/hipcc cmake -DCMAKE_PREFIX_PATH=/opt/rocm/ -DCMAKE_INSTALL_PREFIX=$PWD/rccl-install .. ``` Note: ensure rocm-cmake is installed, `apt install rocm-cmake`.