85e5cf8a93
Change-Id: Ibcaca6869ce96d8802c5fa8ba241f43834d6f2a7
update - codeobj event implementation
Change-Id: I4c12f26a19f2b31d9ac2211c3426a0e587a332b3
update2 - codeobj event implementation
Change-Id: Ic877549a83542ae00352503471d881e847ebac9c
test - codeobj event implementation
Change-Id: I0618d3a93de94c3d7467372ba4a3d4ea5520bfc7
URI reference test - codeobj event implementation
Change-Id: I6cf7e8a648cf012cb0708058b118a75e58f992b9
adding test/app - codeobj event implementation
Change-Id: Idf4c197c7b9116ccde5ec50ff47a26a858bfab32
uri test fix - codeobj event implementation
Change-Id: I7c385f82f516d9d8f2cd726366f00be3664006e3
uri test cleanup - codeobj event implementation
Change-Id: I542d5baf88c048c8b4717af843b803cd93e8f3bc
URI buffer fix - codeobj event implementation
Change-Id: Iac65e04c03a0939935c10f53c6b580a2e33878f5
HSA events tests trace-check disabled
Change-Id: I0f4d13aeeceb1d1a6e2191673eacbf9c7ae2ae52
[ROCm/roctracer commit: 29c63c5281]
ROC-tracer
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.
The API provides functionality for registering the runtimes API callbacks and
asyncronous activity records pool support.
ROC-TX librray: code annotation evemts API
Includes basic API: roctxMark, roctxRangePush, roctxRangePop.
Usage
rocTracer API:
To use the rocTracer API you need the API header and to link your application with roctracer .so librray:
- the API header: /opt/rocm/roctracer/include/roctracer.h
- the .so library: /opt/rocm/lib/libroctracer64.so
rocTX API:
To use the rocTX API you need the API header and to link your application with roctx .so librray:
- the API header: /opt/rocm/roctracer/include/roctx.h
- the .so library: /opt/rocm/lib/libroctx64.so
The library source tree
- doc - documentation
- inc/roctracer.h - rocTacer library public API header
- inc/roctx.h - rocTX library puiblic API header
- src - Library sources
- core - rocTracer library API sources
- roctx - rocTX library API sources
- util - library utils sources
- test - test suit
- MatrixTranspose - test based on HIP MatrixTranspose sample
Documentation
- API description:
- Code examples:
To build and run test
- ROCm is required
- Python modules requirements: CppHeaderParser, argparse.
To install:
sudo pip install CppHeaderParser argparse
- CLone development branch of roctracer:
git clone -b amd-master https://github.com/ROCm-Developer-Tools/roctracer
- Set environment:
export CMAKE_PREFIX_PATH=/opt/rocm
- To use custom HIP version:
export HIP_PATH=/opt/rocm/hip
- To build roctracer library:
export CMAKE_BUILD_TYPE=<debug|release> # release by default
cd <your path>/roctracer && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm .. && make -j <nproc>
- To build and run test:
make mytest
run.sh
- To install:
make install
or
make package && dpkg -i *.deb