Enable rocpd output format with rocprofiler sdk (#790)

* Add `rocpd` choice for `--format-rocprof-output` option
* Add rocpd_data.py which defines SQL queries to extract data from rocpd database
* Use sqlite3 package to read the database
* Add `--retain-rocpd-output` option in profile mode to retain raw
  rocpd database
* Add warning notice to say `--format-rocprof-output rocpd` will be
  default in future release

For rocpd output:
* Use only `pmc_perf.csv` instead of reading individual coll_level results csv files
* Post process csv files using pandas in analysis mode instead of profile mode
* Use ACCUM counters instead of SQ_ACCUM_PREV_HIRES

* Add test cases for rocpd output format
* Fix code formatting issues
* Update CHANGELOG

[ROCm/rocprofiler-compute commit: 03d27c0ba0]
Этот коммит содержится в:
vedithal-amd
2025-07-28 11:02:28 -04:00
коммит произвёл GitHub
родитель 97465e7448
Коммит 17e5892614
39 изменённых файлов: 19428 добавлений и 37 удалений
+8 -1
Просмотреть файл
@@ -249,7 +249,7 @@ Examples:
required=False,
metavar="",
dest="format_rocprof_output",
choices=["json", "csv"],
choices=["json", "csv", "rocpd"],
default="csv",
help="\t\t\tSet the format of output file of rocprof.",
)
@@ -280,6 +280,13 @@ Examples:
default="/opt/rocm/lib/librocprofiler-sdk.so",
help="\t\t\tSet the path to rocprofiler SDK library.",
)
profile_group.add_argument(
"--retain-rocpd-output",
required=False,
default=False,
action="store_true",
help="\t\t\tRetain the large raw rocpd database in workload directory.\n\t\t\tThis option requires --format-rocprof-output rocpd.",
)
## Roofline Command Line Options
roofline_group.add_argument(