Files
rocm-systems/README.md
T

139 rivejä
2.3 KiB
Markdown
Raaka Normaali näkymä Historia

2018-06-15 13:49:29 -05:00
# ROC-tracer
2022-04-15 20:29:31 +00:00
- **ROC-tracer library: Runtimes Generic Callback/Activity APIs**
2019-11-22 17:49:37 -06:00
2022-04-15 20:29:31 +00:00
The goal of the implementation is to provide a generic independent from specific runtime profiler to trace API and asynchronous activity.
The API provides functionality for registering the runtimes API callbacks and asynchronous activity records pool support.
- **ROC-TX library: Code Annotation Events API**
Includes API for:
2022-05-10 19:58:27 -05:00
2022-04-15 20:29:31 +00:00
- `roctxMark`
- `roctxRangePush`
- `roctxRangePop`
2018-06-04 15:43:09 -05:00
2020-01-07 17:11:22 -06:00
## Usage
2022-04-15 20:29:31 +00:00
### `rocTracer` API
To use the rocTracer API you need the API header and to link your application with `roctracer` .so library:
2022-05-10 19:58:27 -05:00
- `/opt/rocm/include/roctracer/roctracer.h`
2022-04-15 20:29:31 +00:00
API header.
- `/opt/rocm/lib/libroctracer64.so`
.so library.
### `rocTX` API
To use the rocTX API you need the API header and to link your application with `roctx` .so library:
- `/opt/rocm/roctracer/include/roctx.h`
API header.
- `/opt/rocm/lib/libroctx64.so`
.so library.
## Library source tree
- `doc`
Documentation.
- `inc`
Include header files.
- `roctracer.h`
`rocTacer` library public API header.
- `roctx.h`
`rocTX` library public 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.
2018-06-04 15:43:09 -05:00
2018-08-26 19:27:36 -05:00
## Documentation
2022-04-15 20:29:31 +00:00
- API description:
- ['roctracer' / 'rocTX' profiling C API specification](docroctracer_spec.md)
- Code examples:
- [test/MatrixTranspose_test/MatrixTranspose.cpp](testMatrixTranspose_test/MatrixTranspose.cpp)
- [test/MatrixTranspose/MatrixTranspose.cpp](test/MatrixTranspose/MatrixTranspose.cpp)
## Build and run tests
- ROCm is required
- Python modules requirements: `CppHeaderParser`, `argparse`.
2019-11-14 10:13:42 -06:00
To install:
2018-06-04 15:43:09 -05:00
2022-04-15 20:29:31 +00:00
```sh
pip3 install CppHeaderParser argparse
```
- Clone development branch of `roctracer`:
```sh
2019-09-04 12:04:27 -05:00
git clone -b amd-master https://github.com/ROCm-Developer-Tools/roctracer
2022-04-15 20:29:31 +00:00
```
- To build `roctracer` library:
2018-06-04 15:43:09 -05:00
2022-04-15 20:29:31 +00:00
```sh
cd <your path>/roctracer
2022-05-09 18:14:29 -05:00
./build.sh
2022-04-15 20:29:31 +00:00
```
2018-08-08 15:47:30 -05:00
2022-04-15 20:29:31 +00:00
- To build and run test:
2018-08-26 18:02:53 -05:00
2022-04-15 20:29:31 +00:00
```sh
2022-05-09 18:14:29 -05:00
cd <your path>/roctracer/build
2019-02-04 17:36:21 -06:00
make mytest
run.sh
2022-04-15 20:29:31 +00:00
```
## Installation
Install by:
```sh
2018-11-13 18:51:56 -06:00
make install
2022-04-15 20:29:31 +00:00
```
or:
```sh
2018-11-13 18:51:56 -06:00
make package && dpkg -i *.deb
2022-04-15 20:29:31 +00:00
```