From 2c281babfbbed7ac89514104ea837edd07f19b98 Mon Sep 17 00:00:00 2001 From: Yuting Jiang Date: Mon, 13 Sep 2021 20:34:37 +0800 Subject: [PATCH] Bug: Fix bug - fix bug of hipBusBandwidth build (#193) **Description** fix bug of hipBusBandwidth building **Major Revision** - it failed to enter the check 'hip/samples/1_Utils/hipBusBandwidth/CMakeLists.txt' when building docker, so removed this check - add sb_micro_path for rocm_bandwidthTest --- third_party/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/third_party/Makefile b/third_party/Makefile index 0a80e4dce..ee243a92a 100755 --- a/third_party/Makefile +++ b/third_party/Makefile @@ -87,9 +87,7 @@ endif # Build hipBusBandwidth. # HIP is released with rocm, like rocm-4.2.0 and so on. # The version we use is the released tag which is consistent with the rocm version in the environment or docker. -rocm_bandwidthTest: - cp -r -v $(shell hipconfig -p) ./ -ifneq (, $(wildcard hip/samples/1_Utils/hipBusBandwidth/CMakeLists.txt)) - cd ./hip/samples/1_Utils/hipBusBandwidth/ && mkdir -p build && cd build && cmake .. && make - cp -v ./hip/samples/1_Utils/hipBusBandwidth/build/hipBusBandwidth $(SB_MICRO_PATH)/bin/ -endif +rocm_bandwidthTest: sb_micro_path + cp -r -v $(shell hipconfig -p)/samples/1_Utils/hipBusBandwidth ./ + cd ./hipBusBandwidth/ && mkdir -p build && cd build && cmake .. && make + cp -v ./hipBusBandwidth/build/hipBusBandwidth $(SB_MICRO_PATH)/bin/