[SDK] Standardize rocprofiler-sdk counter definition YAML schema (#370)

* Convert YAML Format

Convert YAML format and reader to properly read the YAML.

Comparison between output's from the YAML show only changes in ordering
of architectures (and ids).

* Test fixes

* Add script for converting the YAML schema to source/scripts

* Update documentation

* Change the extra counter code block to YAML

* Add missing new line at EOF

* remove name issues

---------

Co-authored-by: Benjamin Welton <bewelton@amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: 33e43e66d3]
This commit is contained in:
Welton, Benjamin
2025-05-14 11:31:51 -07:00
committed by GitHub
parent a6831b7b5b
commit cfce653d86
6 changed files with 8444 additions and 3963 deletions
@@ -1,5 +1,27 @@
TEST_YAML_LOAD:
architectures:
gfx950/gfx942/gfx10/gfx1010/gfx1030/gfx1031/gfx11/gfx1032/gfx1102/gfx906/gfx1100/gfx1101/gfx908/gfx90a/gfx9/gfx12/gfx1200/gfx1201:
expression: reduce(GRBM_GUI_ACTIVE,max)*CU_NUM
description: 'Unit: cycles'
rocprofiler-sdk:
counters-schema-version: 1
counters:
- name: TEST_YAML_LOAD
description: cycles
properties: []
definitions:
- architectures:
- gfx950
- gfx942
- gfx10
- gfx1010
- gfx1030
- gfx1031
- gfx11
- gfx1032
- gfx1102
- gfx906
- gfx1100
- gfx1101
- gfx908
- gfx90a
- gfx9
- gfx12
- gfx1200
- gfx1201
expression: reduce(GRBM_GUI_ACTIVE,max)*CU_NUM