Rename Omnitrace to ROCm Systems Profiler (#4)
The Omnitrace program is being renamed. Full name: "ROCm Systems Profiler" Package name: "rocprofiler-systems" Binary / Library names: "rocprof-sys-*" --------- Co-authored-by: Xuan Chen <xuchen@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
committed by
GitHub
orang tua
dc63370a1f
melakukan
d07bf508a9
@@ -16,6 +16,6 @@ global-exclude *__pycache__*
|
||||
|
||||
# recursive excludes
|
||||
|
||||
recursive-exclude omnitrace_causal_viewer.egg-info *
|
||||
recursive-exclude rocprofsys_causal_viewer.egg-info *
|
||||
recursive-exclude build *
|
||||
recursive-exclude dist *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Omnitrace Causal Viewer
|
||||
# ROCm Systems Profiler Causal Viewer
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -13,13 +13,13 @@ python -m pip install .
|
||||
#### Console Script
|
||||
|
||||
```console
|
||||
omnitrace-causal-plot <args...>
|
||||
rocprof-sys-causal-plot <args...>
|
||||
```
|
||||
|
||||
#### Module
|
||||
|
||||
```console
|
||||
python -m omnitrace_causal_viewer <args...>
|
||||
python -m rocprof-sys_causal_viewer <args...>
|
||||
```
|
||||
|
||||
### From source tree
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[metadata]
|
||||
name = omnitrace-causal-viewer
|
||||
url = https://github.com/ROCm/omnitrace
|
||||
download_url = https://github.com/ROCm/omnitrace.git
|
||||
name = rocprof-sys-causal-viewer
|
||||
url = https://github.com/ROCm/rocprofiler-systems
|
||||
download_url = https://github.com/ROCm/rocprofiler-systems.git
|
||||
maintainer = AMD Research
|
||||
license = MIT
|
||||
description = GUI for viewing Omnitrace causal profiles
|
||||
description = GUI for viewing ROCm Systems Profiler causal profiles
|
||||
keywords =
|
||||
gui
|
||||
causal profiling
|
||||
@@ -22,7 +22,7 @@ classifiers =
|
||||
Programming Language :: Python :: 3
|
||||
|
||||
[options]
|
||||
packages = omnitrace_causal_viewer
|
||||
packages = rocprof_sys_causal_viewer
|
||||
zip_safe = true
|
||||
include_package_data = true
|
||||
|
||||
|
||||
@@ -47,16 +47,16 @@ def parse_requirements(fname="requirements.txt"):
|
||||
|
||||
|
||||
setup(
|
||||
name="omnitrace-causal-viewer",
|
||||
name="rocprof-sys-causal-viewer",
|
||||
version=get_project_version(),
|
||||
description="GUI for viewing causal profilers",
|
||||
long_description=get_long_description(),
|
||||
long_description_content_type="text/markdown",
|
||||
author="AMD Research",
|
||||
packages=["omnitrace_causal_viewer"],
|
||||
package_dir={"omnitrace_causal_viewer": "source"},
|
||||
packages=["rocprof_sys_causal_viewer"],
|
||||
package_dir={"rocprof_sys_causal_viewer": "source"},
|
||||
package_data={
|
||||
"omnitrace_causal_viewer": [
|
||||
"rocprof_sys_causal_viewer": [
|
||||
"source/assets/*",
|
||||
"source/workloads/*",
|
||||
"source/VERSION",
|
||||
@@ -65,6 +65,8 @@ setup(
|
||||
install_requires=parse_requirements(),
|
||||
python_requires=">=3.6",
|
||||
entry_points={
|
||||
"console_scripts": ["omnitrace-causal-plot=omnitrace_causal_viewer.__main__:main"]
|
||||
"console_scripts": [
|
||||
"rocprof-sys-causal-plot=rocprof_sys_causal_viewer.__main__:main"
|
||||
]
|
||||
},
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2023-2024 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -24,7 +24,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
__author__ = "AMD Research"
|
||||
__copyright__ = "Copyright 2023, Advanced Micro Devices, Inc."
|
||||
__copyright__ = "Copyright 2023-2024, Advanced Micro Devices, Inc."
|
||||
__license__ = "MIT"
|
||||
__maintainer__ = "AMD Research"
|
||||
__status__ = "Development"
|
||||
@@ -118,7 +118,7 @@ def main():
|
||||
|
||||
for itr in [
|
||||
settings_path,
|
||||
os.path.join(os.environ.get("HOME"), ".omnitrace-causal-plot.json"),
|
||||
os.path.join(os.environ.get("HOME"), ".rocprof-sys-causal-plot.json"),
|
||||
]:
|
||||
if os.path.exists(itr):
|
||||
with open(itr, "r") as f:
|
||||
@@ -143,18 +143,18 @@ def main():
|
||||
settings[key] = value
|
||||
|
||||
my_parser = argparse.ArgumentParser(
|
||||
description="AMD's OmniTrace Causal Profiling GUI",
|
||||
description="AMD's ROCm Systems Profiler Causal Profiling GUI",
|
||||
prog="tool",
|
||||
allow_abbrev=False,
|
||||
formatter_class=lambda prog: argparse.RawTextHelpFormatter(
|
||||
prog, max_help_position=40
|
||||
),
|
||||
usage="""
|
||||
omnitrace-causal-plot [ARGS...]
|
||||
rocprof-sys-causal-plot [ARGS...]
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Examples:
|
||||
\tomnitrace-causal-plot --path workloads/toy -n 0
|
||||
\trocprof-sys-causal-plot --path workloads/toy -n 0
|
||||
-------------------------------------------------------------------------------
|
||||
""",
|
||||
)
|
||||
@@ -162,7 +162,9 @@ def main():
|
||||
my_parser.add_argument(
|
||||
"--version",
|
||||
action="version",
|
||||
version="OmniTrace Causal Viewer v{}\n".format(f"{__version__}".strip("\n")),
|
||||
version="ROCm Systems Profiler Causal Viewer v{}\n".format(
|
||||
f"{__version__}".strip("\n")
|
||||
),
|
||||
)
|
||||
|
||||
my_parser.add_argument(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
# MIT License
|
||||
#
|
||||
# Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2023-2024 Advanced Micro Devices, Inc. All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -24,7 +24,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
__author__ = "AMD Research"
|
||||
__copyright__ = "Copyright 2023, Advanced Micro Devices, Inc."
|
||||
__copyright__ = "Copyright 2023-2024, Advanced Micro Devices, Inc."
|
||||
__license__ = "MIT"
|
||||
__maintainer__ = "AMD Research"
|
||||
__status__ = "Development"
|
||||
@@ -270,7 +270,7 @@ class experiment_progress(object):
|
||||
def process_samples(data, _data):
|
||||
if not _data:
|
||||
return data
|
||||
for record in _data["omnitrace"]["causal"]["records"]:
|
||||
for record in _data["rocprofsys"]["causal"]["records"]:
|
||||
for samp in record["samples"]:
|
||||
_info = samp["info"]
|
||||
_count = samp["count"]
|
||||
@@ -303,7 +303,7 @@ def process_data(data, _data, experiments, progress_points):
|
||||
_selection_filter = re.compile(experiments)
|
||||
_progresspt_filter = re.compile(progress_points)
|
||||
|
||||
for record in _data["omnitrace"]["causal"]["records"]:
|
||||
for record in _data["rocprofsys"]["causal"]["records"]:
|
||||
for exp in record["experiments"]:
|
||||
_speedup = exp["virtual_speedup"]
|
||||
_duration = exp["duration"]
|
||||
@@ -612,8 +612,8 @@ def parse_files(
|
||||
with open(file, "r") as j:
|
||||
_data = json.load(j)
|
||||
dict_data = {}
|
||||
# make sure the JSON is an omnitrace causal JSON
|
||||
if "omnitrace" not in _data or "causal" not in _data["omnitrace"]:
|
||||
# make sure the JSON is an rocprof-sys causal JSON
|
||||
if "rocprofsys" not in _data or "causal" not in _data["rocprofsys"]:
|
||||
continue
|
||||
dict_data[file] = process_data({}, _data, experiments, progress_points)
|
||||
samps = process_samples({}, _data)
|
||||
@@ -831,8 +831,8 @@ def find_causal_files(workload_path, verbose, recursive):
|
||||
with open(itr, "r") as f:
|
||||
inp_data = json.load(f)
|
||||
if (
|
||||
"omnitrace" not in inp_data.keys()
|
||||
or "causal" not in inp_data["omnitrace"].keys()
|
||||
"rocprofsys" not in inp_data.keys()
|
||||
or "causal" not in inp_data["rocprofsys"].keys()
|
||||
):
|
||||
if verbose >= 2:
|
||||
print(f"{itr} is not a causal profile")
|
||||
|
||||
Reference in New Issue
Block a user