提交線圖

66 次程式碼提交

作者 SHA1 備註 日期
colramos-amd 590d000af0 Remove timestamps from sysinfo
Signed-off-by: colramos-amd <colramos@amd.com>
2023-12-19 21:10:32 -06:00
Cole Ramos 7d93a086c2 Enabling Standalone GUI on 2.x (#214)
* Initial overhaul of Analyze mode. Basic CLI is enabled.

Signed-off-by: colramos-amd <colramos@amd.com>

* Merge branch '2.x' of github.com:AMDResearch/omniperf into 2.x-dev

Signed-off-by: colramos-amd <colramos@amd.com>

* fix comment typo

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>

* Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>

* Move perfmon_configs dir into omniperf_soc dir. Rename config dirs for clarity

Signed-off-by: colramos-amd <colramos@amd.com>

* Add a supported_archs property to Omniperf base class

Signed-off-by: colramos-amd <colramos@amd.com>

* Add css assets for GUI styling

Signed-off-by: colramos-amd <colramos@amd.com>

* Re-organize roofline class. Improved useability

Signed-off-by: colramos-amd <colramos@amd.com>

* Enable standalone GUI

Signed-off-by: colramos-amd <colramos@amd.com>

* Remove outdated metric_configs. This was moved to omniperf_soc dir

Signed-off-by: colramos-amd <colramos@amd.com>

* Fix small bug in GUI to enable Mi100 visualization

Signed-off-by: colramos-amd <colramos@amd.com>

---------

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: Cole Ramos <colramos@amd.com>
Co-authored-by: Karl W Schulz <karl.schulz@amd.com>
2023-12-18 14:37:01 -08:00
JoseSantosAMD 6d7c631cd7 Pytest (#212)
* Initial commit for pytest

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Check if csvs populated

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* pytest now checks soc for soc specific testing

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Roof only csvs updated

-  Removes dir if workload dir already present

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Tests create difference logs calculated from a baseline

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* pytest scripts updated to revamp test cases

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Fix dispatch notation

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Introduce a cmake option to enable python code coverage. It now
defaults to being disabled and can be enabled via a
-DENABLE_COVERAGE=ON option (#194).  Introduce CI on mi100 that
leverages code coverage and publishes results along with a testing
report.

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* update branch for CI -> 2.x

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* add profile execution test in cmake and enable in CI

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* run all ci tests

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Initial overhaul of Profile mode

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Modify vcopy to enable multi iteration and multi kernel for CI

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Update docs and --help menu to reflect new vcopy usage

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Fix typo in IPBlock logging

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Cache ascii art in source and remove ascii dependency

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Update testing collateral to reflect name change of kernel-verbose option

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Small typo corrections in docs

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Fixing more typos...

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* run profiler tests through queue

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* bump wallclock runlimit for test

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* add mi100 badge

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* include step to build hip binary

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* add additional top-level vars for number of kernels expected and
dispatch id; tests updated to use these vars so that vcopy binary can
be used instead of mixbench

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* add requirements-test.txt file to organize python testing dependencies (#205)

* add a requirements-test.txt file to organize additional python
packages needed to support testing; update CI to install python
packages from dependency files

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Dynamically load dependency checker from requirements.txt

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Add comments

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Replace any - with _ for checker logic

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Update cmake config with Fix for pyyaml package installation check

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* update mi100 CI config

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* upgrade jsdom version (#206)

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Adding the log_metric differ function

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Added missing hasattr checker

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Enable running on mi100 and fixed typos
- Also enables RHEL9 roofline

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* update CMakeLists.txt

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Remove pytest raises SystemExit

Add default thresholds

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Initial overhaul of Analyze mode. Basic CLI is enabled.

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Revert "Remove pytest raises SystemExit"

This reverts commit 9762728eb37e740c39ced87ced7dd7a0d423824d.

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* restore formal call to sys.exit() in top-level main; this is needed
for companion testing collateral which expects SystemExit exceptions
to be raised.

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Update return code error checks for roofline-only analysis on MI100

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* disable coverage comment

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* fix comment typo

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Move perfmon_configs dir into omniperf_soc dir. Rename config dirs for clarity

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Add a supported_archs property to Omniperf base class

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Remove pytest raises SystemExit

Add default thresholds

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Revert "Remove pytest raises SystemExit"

This reverts commit 9762728eb37e740c39ced87ced7dd7a0d423824d.

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Add Absolute Difference to report-diff output
-  Pytest regex updated to read Absolute Difference
-  Pytest creates Baseline (Assumes vcopy binary present)
-  Adding Metric logging

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* vcopy binary created before running tests

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Adding the log_metric differ function

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>

* Update test_profile_general.py

remove extra log_metric function

Signed-off-by: JoseSantosAMD <87447437+JoseSantosAMD@users.noreply.github.com>

* Update CMakeLists.txt

soc_params was merged into a class, it isn't a standalone file anymore

Signed-off-by: JoseSantosAMD <87447437+JoseSantosAMD@users.noreply.github.com>

---------

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: JoseSantosAMD <87447437+JoseSantosAMD@users.noreply.github.com>
Co-authored-by: Karl W Schulz <karl.schulz@amd.com>
Co-authored-by: colramos-amd <colramos@amd.com>
Co-authored-by: Karl W. Schulz <koomie@users.noreply.github.com>
2023-12-13 14:50:22 -06:00
colramos-amd 97c5b2c0a1 Add a supported_archs property to Omniperf base class
Signed-off-by: colramos-amd <colramos@amd.com>
2023-12-11 16:49:06 -06:00
colramos-amd fbe6b2d683 Move perfmon_configs dir into omniperf_soc dir. Rename config dirs for clarity
Signed-off-by: colramos-amd <colramos@amd.com>
2023-12-11 16:49:06 -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
colramos-amd 57a63b6eb1 Initial overhaul of Analyze mode. Basic CLI is enabled.
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
Cole Ramos 1289682045 Merge pull request #168 from JoseSantosAMD/cpp_filt
uses c++filt instead of llvm-cxxfilt
2023-09-05 09:21:02 -05:00
JoseSantosAMD 56e497fd62 Update src/utils/csv_processor.py
Co-authored-by: Cole Ramos <colramos@amd.com>
Signed-off-by: JoseSantosAMD <87447437+JoseSantosAMD@users.noreply.github.com>
2023-08-30 17:03:39 -05:00
coleramos425 50fd968f51 Removing kernelVerbose from database mode
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-24 18:57:26 -05:00
josantos 256ada088d uses c++filt instead of llvm-cxxfilt
Signed-off-by: josantos <josantos@amd.com>
2023-08-24 16:43:45 -05:00
coleramos425 7d457b5096 Replacing subprocess with shutil
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-24 15:54:00 -05:00
coleramos425 7187218ed9 Patch llvm-cxxfilt detection in atypical rocm installs
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-22 11:25:06 -05:00
coleramos425 3ae0198f8e Renaming csv_converter to make more succinct
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-16 16:16:46 -05:00
coleramos425 f27142160c Remove debug logging
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-16 15:34:55 -05:00
coleramos425 dc849b264c Conform to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-15 14:09:38 -05:00
coleramos425 4aa33848de Fixing several bugs on original PR
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-15 14:00:36 -05:00
josantos 802308cd28 use llvm-cxxfilt in /opt/rocm
Signed-off-by: josantos <josantos@amd.com>
2023-08-10 13:23:52 -05:00
josantos bbb254ef43 reformatting
Signed-off-by: josantos <josantos@amd.com>
2023-08-10 11:16:50 -05:00
josantos 59d77f9d81 Names shortened/demangled after join_prof
-  Added kernelVerbose flag in profile_group
-  Added KernelVerbose flag in analyze_group
-  Analyze replaces csv with shortened/demangled name
-  csv_converter uses llvm-cxxfilt

Signed-off-by: josantos <josantos@amd.com>
2023-08-10 11:13:27 -05:00
josantos 2948f73ae8 keep converter in csv_converter.py
Signed-off-by: josantos <josantos@amd.com>
2023-08-09 10:46:57 -05:00
JoseSantosAMD 76da2a9ed5 Merge branch 'dev' of https://github.com/AMDResearch/omniperf into kernel_name_mappings 2023-08-08 14:49:59 -05:00
JoseSantosAMD 4e51c122d1 removing calls to kernel_name_shortener in mongo
shortening now in profile

Signed-off-by: JoseSantosAMD <josantos@amd.com>
2023-08-08 12:06:39 -05:00
JoseSantosAMD add68ded67 reformatting
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-08-02 13:55:08 -05:00
coleramos425 0f96a8d1e5 Fix incorrect ordering of args in perfagg func
Signed-off-by: coleramos425 <colramos@amd.com>
2023-08-02 12:50:34 -05:00
JoseSantosAMD b63332a317 Use llvm-cxxfilt to demangle names
Show typed text in in dash-dropdown input box

Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-08-02 12:38:56 -05:00
JoseSantosAMD 9360ed8b0c Use llvm-cxxfilt to demangle names in kernel_name_shortener
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-07-31 14:19:26 -05:00
colramos-amd 2b0ac9b5d8 Enable join_prof() merge util to be called from outside Omniperf
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-17 13:12:56 -05:00
colramos-amd 4d8383b439 Comply to Python formatting
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-11 14:14:10 -05:00
colramos-amd 80c04feb77 Abstract perfmon coalesing for useage in rocomni plugin
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-11 14:13:09 -05:00
coleramos425 f91de7d2f7 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-06-26 15:38:51 -05:00
coleramos425 a89cb96b69 Extend filtering into timestamps.csv (#80)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-06-26 15:30:38 -05:00
colramos-amd 79eecb445e Comply to Python formatting
Signed-off-by: colramos-amd <colramos@amd.com>
2023-06-09 10:04:32 -05:00
colramos-amd acb9729540 Fix VGPR issue (#139)
Signed-off-by: colramos-amd <colramos@amd.com>
2023-06-09 10:00:56 -05:00
Nicholas Curtis b48fb1e4cb reformat 2023-05-24 16:08:09 -04:00
Nicholas Curtis 2e403232db fix column name 2023-05-24 15:29:29 -04:00
Nicholas Curtis 10e6b1f068 Fix issue where join was being done on the incorrect key 2023-05-24 14:22:00 -04:00
coleramos425 dc89d64f11 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 16:10:20 -05:00
coleramos425 d23efe461e Enhance logging
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 13:38:19 -05:00
coleramos425 44edef4635 Enhance logging and warning reporting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-16 15:39:45 -05:00
coleramos425 444102d927 Redefine boring merge values
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-11 14:04:02 -05:00
coleramos425 419e2fcac6 Add grid size option and cmd line option for --join-type
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-11 13:00:30 -05:00
coleramos425 8c173446d2 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-08 11:56:49 -05:00
coleramos425 298271e1d0 Update mean timestamp calculation
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-08 11:25:05 -05:00
coleramos425 a9d82759ca Implement custom merge utility for rocprof
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-05 15:07:20 -05:00
coleramos425 5a36630373 Fix exe permissions on roofline binary
Signed-off-by: coleramos425 <colramos@amd.com>
2023-04-11 16:36:51 -05:00
coleramos425 1de5671673 Update from https://github.com/AARInternal/mibench/commit/f56d76b7c29f907cd174b0f90a2ba480504be559 2023-04-11 15:44:19 +00:00