From 7b4b76b465ff318ba5408c7490e0c0693e675acc Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Fri, 25 Mar 2022 20:35:51 -0400 Subject: [PATCH] SWDEV-329687 - update install.md Change-Id: Ib39df1cd462aa1644c4e0cc2ab0a3c780700056b --- hipamd/INSTALL.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/hipamd/INSTALL.md b/hipamd/INSTALL.md index cc8e46f714..8b20e4d0b2 100644 --- a/hipamd/INSTALL.md +++ b/hipamd/INSTALL.md @@ -36,8 +36,20 @@ export OPENCL_DIR="$(readlink -f ROCm-OpenCL-Runtime)" ``` ## Build HIPAMD -Commands to build hipamd are as following, +Commands to build hipamd are as following, +```bash +cd "$HIPAMD_DIR" +mkdir -p build; cd build +cmake -DHIP_COMMON_DIR=$HIP_DIR -DAMD_OPENCL_PATH=$OPENCL_DIR -DROCCLR_PATH=$ROCCLR_DIR -DCMAKE_PREFIX_PATH="/" .. +make -j$(nproc) +sudo make install +``` + +Please note, HIP_COMMON_DIR looks for hip common ([HIP](https://github.com/ROCm-Developer-Tools/HIP/)) source codes. +By default, release version of hipamd is built. hip will be installed to the default path /hip + +Developer can use cmake option CMAKE_INSTALL_PREFIX to define the path where hip is expected to be installed, commands to build are as following, ```bash cd "$HIPAMD_DIR" mkdir -p build; cd build @@ -46,7 +58,5 @@ make -j$(nproc) sudo make install ``` -Note, -HIP_COMMON_DIR looks for hip common ([HIP](https://github.com/ROCm-Developer-Tools/HIP/)) source codes. -By default, release version of hipamd is built. +After installation, make sure HIP_PATH is pointed to the path where hip is installed.