Handle mutually exclusive report section filters (#710)

* Make --roof-only, --block and --set mutually exclusive from each other

* Update help output and documentation
  * Add sanitize function for checking profiler options

* Update filter blocks arguments when --set or --roof-only is provided

* Update filter_blocks in profiling_config.yaml based on --set option
  * Log Filtered Sections instead of Report Sections and Set Selection

* Move soc class function calls from rocprof compute base class to profiler base class

* Fix bug in panel level filtering using --filter-block option

* Remove roofline specific pmc files

* Move microbenchmark entry point from gfx specific soc class to base soc class

* Run microbenchmarks only if block 4 is selected or roof only is selected; skip for mi100
This commit is contained in:
vedithal-amd
2025-09-09 17:48:20 -04:00
committed by GitHub
parent 5738922604
commit 85a557673d
21 changed files with 202 additions and 450 deletions
+12 -4
View File
@@ -232,7 +232,8 @@ Examples:
help=(
"\t\t\tSpecify metric id(s) from --list-metrics for filtering "
"(e.g. 12, 12.1, 12.1.1).\n"
"\t\t\tCan provide multiple space separated arguments."
"\t\t\tCan provide multiple space separated arguments.\n"
"\t\t\tCannot be used with --set or --roof-only"
),
)
profile_group.add_argument(
@@ -244,8 +245,12 @@ Examples:
"--set",
default=None,
dest="set_selected",
help="\t\t\tProfile a set of metrics of topic of interest by collecting "
"counters in a single pass.\n\t\t\tFor available sets, see --list-sets",
help=(
"\t\t\tProfile a set of metrics of topic of interest by collecting "
"counters in a single pass.\n"
"\t\t\tFor available sets, see --list-sets\n"
"\t\t\tCannot be used with --block or --roof-only"
),
)
profile_group.add_argument(
@@ -345,7 +350,10 @@ Examples:
required=False,
default=False,
action="store_true",
help="\t\t\tProfile roofline data only.",
help=(
"\t\t\tProfile roofline data only.\n"
"\t\t\tCannot be used with --block or --set"
),
)
roofline_group.add_argument(
"--sort",