OMNITRACE_ROCM_SMI_METRICS (#331)

* OMNITRACE_ROCM_SMI_METRICS

- configuration variable OMNITRACE_ROCM_SMI_METRICS for specifying which rocm-smi metrics to collect
- auto-disable metric collection when rsmi_dev_X_get returns RSMI_STATUS_NOT_SUPPORTED

* Bump version to 1.11.1

* Python formatting

* Update python/libpyomnitrace.cpp

- fix usage of substr (ignored return value)

* Update python/gui/source/gui.py

- Fix E721
  - do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

[ROCm/rocprofiler-systems commit: 15127c0d43]
This commit is contained in:
Jonathan R. Madsen
2024-02-08 07:06:23 -06:00
committed by GitHub
parent 8c8caaa1d9
commit 25ff5e3891
7 changed files with 127 additions and 35 deletions
@@ -191,7 +191,7 @@ def update_line_graph(
def reset_input_filters(workloads, max_points, verbosity):
sortOptions = ["Alphabetical", "Max Speedup", "Min Speedup", "Impact"]
if type(workloads) == str:
if isinstance(workloads, str):
workloads = [workloads]
input_filters = [
@@ -241,9 +241,11 @@ def build_causal_layout(
]
app.layout = html.Div(
style={"backgroundColor": "rgb(255, 255, 255)"}
if light_mode
else {"backgroundColor": "rgb(50, 50, 50)"}
style=(
{"backgroundColor": "rgb(255, 255, 255)"}
if light_mode
else {"backgroundColor": "rgb(50, 50, 50)"}
)
)
line_graph1, line_graph2 = build_line_graph()
@@ -186,7 +186,7 @@ def get_header(dropDownMenuItems, input_filters):
ul = html.Div(
id="nav-center",
className="nav-center",
children=filter_children
children=filter_children,
# [
# html.Li(className="filter", children=filter_children),
# refresh(),
@@ -135,7 +135,7 @@ PYBIND11_MODULE(libpyomnitrace, omni)
}
if(!_cmd_line.empty())
{
_cmd_line.substr(_cmd_line.find_first_not_of(' '));
_cmd_line = _cmd_line.substr(_cmd_line.find_first_not_of(' '));
tim::set_env("OMNITRACE_COMMAND_LINE", _cmd_line, 0);
}
omnitrace_init("trace", false, _cmd.c_str());