Skip to content

How to build ROCm Bandwidth Test

Mario HDL edited this page Jul 16, 2018 · 1 revision

Set path to your workbench folder e.g., /work/mlucinhdl and path to your rvs source tree:

export WB=/your/workbench/folder
export RVS=$WB/ROCmValidationSuite

Set env vars as instructed by rocm_bandwidht_test readme:

export ROCR_INC_DIR=/opt/rocm/include/
export ROCR_LIB_DIR=/opt/rocm/lib/
export ROCT_INC_DIR=/opt/rocm/include/libhsakmt/
export ROCT_LIB_DIR=/opt/rocm/lib/

Clone repository

cd $WB
git clone https://github.com/RadeonOpenCompute/rocm_bandwidth_test.git

Create out-of-source build script and build the test:

cmake -DROCR_INC_DIR=$ROCR_INC_DIR -DROCR_LIB_DIR=$ROCR_LIB_DIR rocm_bandwidth_test/ -B./build/rocm_bandwidth_test
cd rocm_bandwidth_test/
make

Run the test:

./rocm_bandwidth_test
Clone this wiki locally