Skip to content

Commit

Permalink
Renaming csv_converter to make more succinct
Browse files Browse the repository at this point in the history
Signed-off-by: coleramos425 <colramos@amd.com>
  • Loading branch information
coleramos425 committed Aug 16, 2023
1 parent f271421 commit 3ae0198
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/omniperf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from parser import parse
from utils import specs
from utils.perfagg import perfmon_filter, pmc_filter, pmc_perf_split, join_prof
from utils import remove_workload
from utils import csv_converter # Import workload
from utils import csv_processor # Import workload
from omniperf_analyze.omniperf_analyze import roofline_only # Standalone roofline
from omniperf_analyze.omniperf_analyze import analyze # CLI analysis

Expand Down Expand Up @@ -254,10 +254,10 @@ def gen_sysinfo(workload_name, workload_dir, ip_blocks, app_cmd, skip_roof):

def mongo_import(args, profileAndImport):
# Validate target directory
connectionInfo, Extractionlvl = csv_converter.parse(args, profileAndImport)
connectionInfo, Extractionlvl = csv_processor.parse(args, profileAndImport)
# Convert and upload data
print("-- Conversion & Upload in Progress --")
csv_converter.convert_folder(connectionInfo, Extractionlvl)
csv_processor.convert_folder(connectionInfo, Extractionlvl)
print("-- Complete! --")

################################################
Expand Down Expand Up @@ -445,7 +445,7 @@ def characterize_app(args, VER):
# Manually join each pmc_perf*.csv output
join_prof(workload_dir, args.join_type, log, args.verbose)
# Demangle and overwrite original KernelNames
csv_converter.kernel_name_shortener(workload_dir, args.kernelVerbose)
csv_processor.kernel_name_shortener(workload_dir, args.kernelVerbose)

log.close()

Expand Down Expand Up @@ -672,7 +672,7 @@ def omniperf_profile(args, VER):
# Manually join each pmc_perf*.csv output
join_prof(workload_dir, args.join_type, log, args.verbose)
# Demangle and overwrite original KernelNames
csv_converter.kernel_name_shortener(workload_dir, args.kernelVerbose)
csv_processor.kernel_name_shortener(workload_dir, args.kernelVerbose)

# Generate sysinfo
gen_sysinfo(args.name, workload_dir, args.ipblocks, args.remaining, args.no_roof)
Expand Down
4 changes: 2 additions & 2 deletions src/omniperf_analyze/omniperf_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from pathlib import Path
from omniperf_analyze.utils import parser, file_io
from omniperf_analyze.utils.gui_components.roofline import get_roofline
from utils import csv_converter
from utils import csv_processor

archConfigs = {}

Expand Down Expand Up @@ -223,7 +223,7 @@ def run_cli(args, runs):
# After decide to how to manage kernels display patterns, we can revisit it.
for d in args.path:
# Demangle and overwrite original KernelNames
csv_converter.kernel_name_shortener(d[0], args.kernelVerbose)
csv_processor.kernel_name_shortener(d[0], args.kernelVerbose)

file_io.create_df_kernel_top_stats(
d[0],
Expand Down
File renamed without changes.

0 comments on commit 3ae0198

Please sign in to comment.