Karl W. Schulz
523639a7fd
Update src/utils/db_connector.py
...
Co-authored-by: Cole Ramos <colramos@amd.com >
Signed-off-by: Karl W. Schulz <koomie@users.noreply.github.com >
2024-03-11 14:19:01 -05:00
Karl W. Schulz
8e45cc897f
Update src/utils/utils.py
...
Co-authored-by: Cole Ramos <colramos@amd.com >
Signed-off-by: Karl W. Schulz <koomie@users.noreply.github.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
34070394eb
allow color formatter via env variable OMNIPERF_COLOR=1
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
27a57bdafb
refactor setting of local encoding; remove from top-level omniperf
...
wrapper and push into base class via a companion utility function
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
15c86ba424
update print_status() to use console logger; convert some info logs to debug logs
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
505e263279
rework of logger.py setup to introduce another setup_file_handler() -
...
this function enables file-based logger output for use with profile
mode
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
e24e6c35a5
refactor logging initialization into two steps:
...
(1) setup_logging_handler -> called prior to arg parsing
(2) setup_logging_priority -> called after arg parsing
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
abd3d20cb2
add quietmode option to setup_logging function
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
2b24375e8d
add a exit keyword to console_error function; allows multiple error
...
lines prior to code exit
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
377c642ac2
updates for run_prof() routine:
...
* add a profileMode keyword option, used to indent profiling output
* update logic if forked process is not successful, output is
displayed directly with INFO logging or lower; also dispaly output
in ERROR mode if the process fails
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
dcdef37c34
remove duplicate process output within run_prof()
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
61267ee262
include ERROR delimiter directly for console_error() messsages
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
cc7a725ae8
add a profileMode option to capture_subprocess_output() - includes
...
indented output with profiler selection when enabled
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
6bb4210d94
minor refactor of print_status()
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
63129e4247
add indent support to console_log()
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
Karl W Schulz
bdfc536ade
update setup_logging function to return loglevel; disable inclusion of
...
loglevel delimiter in output
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
6c5a3623b6
Fix dangling merge conflict
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
f2aac37178
Fix python formatting
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
771644f5f7
Replaced some straggling print statements with log functions
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
5ed9a5c902
Connect verbosity flag to loglevel
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
5bf38a4fed
All logging should use call new functions
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
233905071c
Dedicated logging function for each log level
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
0611ce4582
Remove outdated remove_workload.py module
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
colramos-amd
2e09f0be7e
Standalone logging module for cleaner omniperf_base.py
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-11 14:19:01 -05:00
Cole Ramos
f4511e7280
Force encoding before Omniperf execution ( #299 )
...
* Force encoding before Omniperf execution
Signed-off-by: colramos-amd <colramos@amd.com >
* Fix circular dependency in utils module
Signed-off-by: colramos-amd <colramos@amd.com >
---------
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-06 17:01:07 -06:00
Jason Ray
994aea9f0e
bump statman-stopwatch to 2.18 ( #220 )
...
* Lock Pandas to version 1.4.3 for tutorial
Signed-off-by: colramos-amd <colramos@amd.com >
* Establish connection between kernel related flags in Analyze Mode (#187 )
Signed-off-by: colramos-amd <colramos@amd.com >
* Fixing bug in kernel/dispatch filter pytest
Signed-off-by: colramos-amd <colramos@amd.com >
* More CI logic errors fixed
Signed-off-by: colramos-amd <colramos@amd.com >
* Update CHANGES
Signed-off-by: Cole Ramos <colramos@amd.com >
* Update CHANGES
Signed-off-by: Cole Ramos <colramos@amd.com >
* Update README.md
Signed-off-by: Cole Ramos <colramos@amd.com >
* bump statman-stopwatch to 2.18
Signed-off-by: Jason Ray <jayray.net@gmail.com >
* Fix merge mistakes
Signed-off-by: colramos-amd <colramos@amd.com >
---------
Signed-off-by: colramos-amd <colramos@amd.com >
Signed-off-by: Cole Ramos <colramos@amd.com >
Signed-off-by: Jason Ray <jayray.net@gmail.com >
Co-authored-by: colramos-amd <colramos@amd.com >
2024-03-05 11:16:23 -06:00
colramos-amd
a44e07d928
Account for missing GRBM_GUI_ACTIVE in roof-only mode ( #103 )
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-05 10:43:24 -06:00
Karl W Schulz
f94da3228d
apply formatter
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-03 15:20:21 -06:00
colramos-amd
ea9783f105
Fix typo, patch issue in kernel filtering in standalone GUI, and error on version mismatch
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-03 14:38:28 -06:00
Karl W Schulz
ca59cbe3a3
apply formatter
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-03-02 12:28:34 -06:00
coleramos425
7b8cf17254
Fix missing median values
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 18:00:17 -06:00
coleramos425
cdeb2c7e85
Add custom decorator to avoid using kw_only
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 17:49:22 -06:00
coleramos425
1dc4553091
CMake and Python format
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 15:50:42 -06:00
coleramos425
1c3e7598a6
Remove hardcoded gfx90a in gen_sysinfo util
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 15:50:42 -06:00
coleramos425
eaf701abf0
More formatting!
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
d6f45411eb
Python formatting
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
817774be5e
print version out of table
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
Nick Curtis
5b5d4c9a23
Update src/utils/specs.py
...
Co-authored-by: Cole Ramos <colramos@amd.com >
Signed-off-by: Nick Curtis <6463881+skyreflectedinmirrors@users.noreply.github.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
de384467f5
push missing rabulate through get_table_string
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
200961ffd9
Re-implement machine-specs to contain documentation, units, etc. Print using tabulate
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
coleramos425
5ebd2dbc74
Re-enable multi kernel filtering
...
Co-authored-by: Nick Curtis <nicholas.curtis@amd.com >
Signed-off-by: coleramos425 <colramos@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
c10cc0ede2
fix for improper display of % of peak for instruction mix panel
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
3197553ca6
Add version to specs/sysinfo output in order to throw warning for new fields
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
09f1455308
Added consistent 'Channel' headers to l2_per_chan, removed hardcoded 32 channels, and removed printed Nones ( #276 )
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
0d516f05b4
Fix bug in GUI kernel filtering
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
20d93703fc
correct small negatives in remote read/write traffic due to running in different passes
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
2c3c5fba35
fix dependency ordering in builtins
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
18dfc35c14
typo
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
Nicholas Curtis
c5e4a33c07
catch missing per-XCDs
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
c17e39189f
Enhance correct_sys_info() func and err checking
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00