Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses c++filt instead of llvm-cxxfilt #168

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/utils/csv_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def shorten_file(df, level):
if original_name in cache:
continue

cmd = [llvm_filt, original_name]
cmd = [cpp_filt, original_name]

proc = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE
Expand Down Expand Up @@ -127,15 +127,11 @@ def shorten_file(df, level):

# Only shorten if valid shortening level
if level < 5:
returnPath = True
rocprof_path = resolve_rocprof(returnPath)
# Given expected rocprof dir format (ie '/opt/rocm-x.x.x/bin/rocprof') navigate to llvm in parent
rocm_dir = os.path.abspath(os.path.join(rocprof_path, os.pardir, os.pardir))
llvm_filt = os.path.join(rocm_dir, "llvm", "bin", "llvm-cxxfilt")
if not os.path.isfile(llvm_filt):
cpp_filt = os.path.join("/usr", "bin", "c++filt")
if not os.path.isfile(cpp_filt):
print(
"Error: Could not resolve llvm-cxxfilt in rocm install: {}".format(
llvm_filt
"Error: Could not resolve c++filt in expected directory: {}".format(
cpp_filt
)
)
sys.exit(0)
Expand Down
Loading