Files
rocm-systems/README.md
T

64 γραμμές
1.9 KiB
Markdown

2018-06-15 13:49:29 -05:00
# ROC-tracer
2018-08-26 19:27:36 -05:00
```
ROC-tracer library, Runtimes Generic Callback/Activity APIs.
The goal of the implementation is to provide a generic independent from
specific runtime profiler to trace API and asyncronous activity.
2018-06-15 13:49:29 -05:00
2018-08-26 19:27:36 -05:00
The API provides functionality for registering the runtimes API callbacks and
asyncronous activity records pool support.
```
2018-06-04 15:43:09 -05:00
The library source tree:
- inc/roctracer.h - Library public API
- src - Library sources
- core - Library API sources
- util - Library utils sources
- test - test suit
- MatrixTranspose - test based on HIP MatrixTranspose sample
2018-08-26 19:27:36 -05:00
## Documentation
```
- API description: inc/roctracer.h
- Code exaple: test/MatrixTranspose/MatrixTranspose.cpp
```
2018-08-26 18:02:53 -05:00
## To build and run test
2018-06-15 13:49:29 -05:00
```
2018-08-26 18:02:53 -05:00
cd <your path>
2018-06-04 15:43:09 -05:00
2018-08-26 18:02:53 -05:00
- 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
2018-06-04 15:43:09 -05:00
2018-08-26 18:02:53 -05:00
- Set environment:
export HIP_PATH=<your path>/HIP
export HCC_PATH=<your path>/hcc
2018-11-05 02:31:37 -06:00
export HCC_HOME=<your path>/hcc/build
2018-08-26 18:02:53 -05:00
export CMAKE_PREFIX_PATH=/opt/rocm/lib:/opt/rocm/include/hsa
2018-08-08 15:47:30 -05:00
2018-08-26 18:02:53 -05:00
- Build HCC:
2018-11-05 02:31:37 -06:00
cd <your path>/hcc && mkdir build && cd build
cmake -DUSE_PROF_API=1 -DPROF_API_HEADER_PATH=<your path>/roctracer/inc/roctracer ..
make -j <nproc>
2018-08-26 18:02:53 -05:00
- Build HIP:
2018-11-05 02:31:37 -06:00
cd <your path>/HIP && mkdir build && cd build
cmake -DUSE_PROF_API=1 -DPROF_API_HEADER_PATH=<your path>/roctracer/inc/roctracer ..
make -j <nproc>
2018-08-26 18:02:53 -05:00
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
2018-06-15 10:31:01 -05:00
cd <your path>/roctracer/test/MatrixTranspose
make
2018-08-26 18:02:53 -05:00
2018-08-26 18:03:33 -05:00
set test iterations number, 100 by default
2018-08-26 18:02:53 -05:00
export ITERATIONS=<iterations number>
2018-06-15 13:49:29 -05:00
```