From e376103e155f89ab699c00958a00b43863d9a449 Mon Sep 17 00:00:00 2001 From: harkgill-amd Date: Tue, 4 Nov 2025 15:33:11 -0500 Subject: [PATCH] Align README source build with docs Resolves Align README build from source guide with updated steps from https://rocm.docs.amd.com/projects/rocm_bandwidth_test/en/latest/install/install.html#building-rbt-from-source. --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dfee2eb..e802070 100644 --- a/README.md +++ b/README.md @@ -57,14 +57,32 @@ See the [full library and API documentation](https://rocm.docs.amd.com/en/latest ### Build from Source -See [Build from Source](#Build_from_Source) +See [Build from Source](https://rocm.docs.amd.com/projects/rocm_bandwidth_test/en/latest/install/install.html#building-rbt-from-source) ```bash git clone https://github.com/ROCm/rocm_bandwidth_test cd rocm_bandwidth_test mkdir build && cd build -cmake .. -DCMAKE_BUILD_TYPE=Debug|Release -make + +## Standalone build +cmake -DCMAKE_BUILD_TYPE="Debug | Release" .. \ + -DAMD_APP_STANDALONE_BUILD_PACKAGE=ON \ + -DAMD_APP_ENGINEERING_BUILD_PACKAGE=OFF && cmake --build . + +## ROCm build +## Assumes ROCm is installed on the build system +cmake -DCMAKE_BUILD_TYPE="Debug | Release" .. \ + -DAMD_APP_STANDALONE_BUILD_PACKAGE=OFF \ + -DAMD_APP_ROCM_BUILD_PACKAGE=ON && cmake --build . +``` + +## Installing RBT +```bash +## For Makefiles +make install + +## For CMake; Default install location is /opt/rocm/ +cmake --install . --prefix /path/to/install/location ``` ## Usage