From 5f1fa737d5fb118872a49cff37a07dfe8cf64205 Mon Sep 17 00:00:00 2001 From: yukirora Date: Thu, 9 Sep 2021 15:49:34 +0800 Subject: [PATCH 1/4] fix bug of hipBusBandwidth build --- third_party/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/third_party/Makefile b/third_party/Makefile index 5531cabb7..f688e6414 100755 --- a/third_party/Makefile +++ b/third_party/Makefile @@ -93,9 +93,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: +rocm_bandwidthTest: sb_micro_path 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 From e38745b98085e01f494d73397486aca1d86160b1 Mon Sep 17 00:00:00 2001 From: yukirora Date: Thu, 9 Sep 2021 17:08:33 +0800 Subject: [PATCH 2/4] revise to only copy hipBusBandwidth --- third_party/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/Makefile b/third_party/Makefile index f688e6414..b9e0a5523 100755 --- a/third_party/Makefile +++ b/third_party/Makefile @@ -94,6 +94,6 @@ endif # 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: sb_micro_path - cp -r -v $(shell hipconfig -p) ./ - 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/ + 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/ From 54fa013c0abe34e8dbb3a6b62e3b6e7ecdd481f4 Mon Sep 17 00:00:00 2001 From: yukirora Date: Fri, 10 Sep 2021 09:30:29 +0800 Subject: [PATCH 3/4] delete hipBusBandwidth directory --- third_party/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/Makefile b/third_party/Makefile index b9e0a5523..4b5b4c181 100755 --- a/third_party/Makefile +++ b/third_party/Makefile @@ -97,3 +97,4 @@ 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/ + rm -rf hipBusBandwidth From f0e65a1694bf0ef342310b797c6441e81016922a Mon Sep 17 00:00:00 2001 From: Yuting Jiang Date: Mon, 13 Sep 2021 13:43:02 +0800 Subject: [PATCH 4/4] =?UTF-8?q?remove=20=E2=80=98rm=20-rf=20hipBusBandwidt?= =?UTF-8?q?h'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/third_party/Makefile b/third_party/Makefile index 4b5b4c181..b9e0a5523 100755 --- a/third_party/Makefile +++ b/third_party/Makefile @@ -97,4 +97,3 @@ 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/ - rm -rf hipBusBandwidth