Skip to content

Commit

Permalink
Bug: Fix bug - fix bug of hipBusBandwidth build (#193)
Browse files Browse the repository at this point in the history
**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
  • Loading branch information
Yuting Jiang authored and abuccts committed Sep 24, 2021
1 parent 6da800f commit 2c281ba
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions third_party/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 2c281ba

Please sign in to comment.