Update README.md

This commit is contained in:
eshcherb
2018-08-26 18:02:53 -05:00
zatwierdzone przez GitHub
rodzic a27f63b110
commit d7a1ec8e4f
+29 -21
Wyświetl plik
@@ -11,31 +11,39 @@ The library source tree:
- test - test suit
- MatrixTranspose - test based on HIP MatrixTranspose sample
## Environment example
## To build and run test
```
export HIP_PATH=/opt/rocm/hip
export HCC_PATH=/opt/rocm/hcc
cd <your path>
- CLone roctracer and custom branches of HIP/HCC:
git clone -b amd-master https://github.com/ROCmSoftwarePlatform/roctracer.git
git clone -b roctracer-hip-frontend-180826 https://github.com/eshcherb/HIP.git
git clone --recursive -b roctracer-hip-frontend-180823 https://github.com/eshcherb/hcc.git
- Set environment:
export HIP_PATH=<your path>/HIP
export HCC_PATH=<your path>/hcc
export HCC_HOME=<your path>/hcc/lib
export CMAKE_PREFIX_PATH=/opt/rocm/lib:/opt/rocm/include/hsa
```
## To build
```
cd <your path>/roctracer/build
cmake ..
make
```
## To rebuild and run test
```
- Set iterations number, 100 by default
export ITERATIONS=<iterations number>
- Set HCC_HOME env var to use custom HCC build
<your path>/roctracer/build$ make mytest
or
- Build HCC:
cd <your path>/hcc
mkdir build && cd build && cmake -DUSE_PROF_API=1 .. && make -j <nproc>
- Build HIP:
cd <your path>/HIP && mkdir build && cd build && cmake -DUSE_PROF_API=1 .. && make -j <nproc>
ln -s HIP/build HIP/lib
- Build ROCtracer
cd <your path>/roctracer && mkdir build && cd build && cmake .. && make -j <nproc>
- To run test
make mytest
or
cd <your path>/roctracer/test/MatrixTranspose
make
Set test iterations number, 100 by default
export ITERATIONS=<iterations number>
```