Karl W. Schulz
5e21dc35fd
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
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
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
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
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
233905071c
Dedicated logging function for each log level
...
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
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
coleramos425
1c3e7598a6
Remove hardcoded gfx90a in gen_sysinfo util
...
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
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
Nicholas Curtis
18dfc35c14
typo
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
a70dc4999d
Hide L2Banks in sysinfo and update roofline module
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
86b6c8e848
Renaming global spec vars. Replacing L2Banks with total_l2_chan ( #251 )
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
colramos-amd
3b1b8d7b5b
Reorganize the specs module to reduce duplicate code
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-03-01 15:50:42 -06:00
Karl W Schulz
76873dd0c4
more code formatting updates
...
Signed-off-by: Karl W Schulz <karl.schulz@amd.com >
2024-02-22 16:02:25 -06:00
Nick Curtis
852cc13f2a
Fix clocks ( #246 )
...
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
Co-authored-by: Nicholas Curtis <nicurtis@amd.com >
2024-02-13 20:22:11 -06:00
Nick Curtis
c60f031558
Fix hbmBW calculation, ( #243 )
...
* Fix hbmBW calculation, currently we're reading the wrong value of the mclk out of rocm-smi
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
* Fix for earlier smi
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
---------
Signed-off-by: Nicholas Curtis <nicurtis@amd.com >
Co-authored-by: Nicholas Curtis <nicurtis@amd.com >
2024-02-13 20:19:56 -06:00
colramos-amd
7bb211a465
Fix logic for roofline field in sysinfo
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-02-12 17:07:55 -06:00
colramos-amd
33a2cd34ce
Revert sbios fix. Catch commas
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-02-08 12:52:07 -06:00
colramos-amd
d16f58b797
Add numPipes built-in-var for updated metrics
...
Co-authored-by: Nick Curtis <nicholas.curtis@amd.com >
Signed-off-by: colramos-amd <colramos@amd.com >
2024-02-06 16:19:40 -06:00
colramos-amd
9b464503fe
Fix reporting of --roof-only runs in sys_info
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-02-04 12:44:47 -06:00
colramos-amd
f44ce21252
profile: fix parsing tcc per channel on mi300 ( #234 )
...
Co-authored-by: fei.zheng <fei.zheng@amd.com >
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-31 09:34:50 -06:00
colramos-amd
e1867d34d3
Enable database mode
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-30 10:43:30 -06:00
colramos-amd
a1bfa83764
Patch roofline debug logging
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-29 10:22:37 -06:00
colramos-amd
911943acee
Add missing input file to Mi300 flattening
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-26 10:32:13 -06:00
colramos-amd
be606e6ccb
Add missing rocm6 and ubuntu2204 elements to roofline binary
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-25 12:55:32 -06:00
Karl W. Schulz
d7b6cf81e6
update headers for 2024 calendar year
...
Signed-off-by: Karl W. Schulz <karl.schulz@amd.com >
2024-01-24 17:50:31 -06:00
colramos-amd
e5ac5ccf7d
Responding to Karls review
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
88ef7b7550
Catch ROCm-6.0.0 headers for replacement and standardization
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
a171e776e4
Update headers based on latest rocprofv2 output. Overwrite old headers.
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
coleramos425
0432f77a7e
Add config files for Mi300_A1 and modify run_prof utility to use XCC modes
...
Co-authored-by: fei.zheng <fei.zheng@amd.com >
Signed-off-by: coleramos425 <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
d4a649a926
Fix bug in profiling for Mi100
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
a1b5c252e2
Optimizations to run_prof() utility
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
987f612489
Adding sbios, vbios, and partitioning info to specs. Also reorganizing fields.
...
Co-authored-by: fei.zheng <fei.zheng@amd.com >
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-24 16:30:04 -06:00
colramos-amd
37bd6b78ae
Fix reporting of --roof-only runs in sys_info
...
Signed-off-by: colramos-amd <colramos@amd.com >
2024-01-23 12:56:59 -06:00
coleramos425
e534e0ab3b
Catch failed rocprof subprocess
...
Signed-off-by: coleramos425 <colramos@amd.com >
2024-01-13 11:31:55 -06:00
colramos-amd
590d000af0
Remove timestamps from sysinfo
...
Signed-off-by: colramos-amd <colramos@amd.com >
2023-12-19 21:10:32 -06:00
colramos-amd
b99d448d3b
Move error logging to util.py
...
Signed-off-by: colramos-amd <colramos@amd.com >
2023-12-11 16:49:06 -06:00
JoseSantosAMD
92f91e4715
Enable running on mi100 and fixed typos
...
- Also enables RHEL9 roofline
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com >
2023-12-07 08:40:19 -06:00
colramos-amd
87388227ca
Initial overhaul of Profile mode
...
Signed-off-by: colramos-amd <colramos@amd.com >
2023-10-31 15:11:17 -05:00
Karl W. Schulz
c55508dfe6
Addition of new files to demonstrate top-level data structure refactoring for
...
2.x version. Introduces an Omniperf class as the primary structure to organize
work elements and allows for a simple main() which is highlighted in a
omniperf2 example. Demonstrates desired logger functionality including a custom
trace loglevel that can be used to provide more verbosity beyond the debug
level. Also introduces three abstract base classes to organize flexibility for
alternative implementations of key elements within omniperf:
* underlying profiler tool (e.g. rocprof, rocscope, etc)
* supported GPU architectures (SoC)
* analysis environments (e.g. CLI, web-based, etc)
Stub examples for child classes relevant to currently supported options within
omniperf are included in separate files.
Signed-off-by: Karl W. Schulz <karl.schulz@amd.com >
2023-10-04 09:52:50 -05:00