Files
rocm-systems/runtime/hsa-ext-aql-profile
Evgeny 35b376e2ee GFX8 API
Change-Id: I9d0c430e4199f043226c8897f3320a7973cbdeda
2017-06-14 12:24:28 -04:00
..
2017-06-13 14:58:29 -05:00
2017-06-14 12:24:28 -04:00
2017-06-14 12:24:28 -04:00
2017-06-14 12:24:28 -04:00
2017-06-14 12:24:28 -04:00

HSA extension AMD AQL profile library.
Provides AQL packets helper methods for
perfcounters (PMC) and SQ threadtraces (SQTT).

Current library implementation supports only GFX9.
The library source tree:
 - doc  - Documantation, the API specification and the presentation
 - inc  - Public API
   - hsa_ext_amd_aql_profile.h - AMD AQL profile library public API
   - amd_aql_pm4_ib_packet.h   - AQL PM4 IB packet type
 - src  - AMD AQL profile library sources
   - aqlprofile - AMD AQL profile library
   - commandwriter - PM4 command writer originated from 'hsa-runtime/tools'
   - perfcounter - PM4 perfcounter manager originated from 'hsa-runtime/tools'
   - threadtrace - PM4 threadtrace manager originated from 'hsa-runtime/tools'
   - util - core/utils library build based on 'hsa-runtime/core/util'
 - test - the library test suite
   - ctrl - Test controll
   - common - Test common utils
   - SimpleConvolution - Simple convolution test

To build the library:

$ cd ..../hsa-ext-aql-profile
$ mkdir build
$ cd build
$ cmake ..
$ make

To run the test:

# cd ..../hsa-ext-aql-profile/build
$ cp ../test/SimpleConvolution/gfx9_SimpleConvolution.hsaco .
$ test/SimpleConvolution 

to enable PMC profiling:
export ROCR_ENABLE_PMC=1

to enable SQTT profiling:
export ROCR_ENABLE_SQTT=1