[rocpd] Use SQL queries instead of views in summary generator#311
Conversation
yhuiYH
left a comment
There was a problem hiding this comment.
Probably want to get rid of get_temp_view_names function too. That'll prove that we don't need any views.
Recall, Jonathan suggested to replace any temp views and instead, use a "WITH" query in SQL.
I know, it's probably a more significant re-write, which may or may not be worth it at this point. We may want to focus on different task first.
3e5ba67 to
a2693be
Compare
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Co-authored-by: Rahul Manocha <rmanocha@amd.com> [ROCm/hip commit: c9b9717]
a2693be to
d045a71
Compare
1b9926f to
b58e81e
Compare
yhuiYH
left a comment
There was a problem hiding this comment.
These are all just minor nit pick text suggestions.
b58e81e to
f3a7611
Compare
|
It looks like summary.py test is failing on SLES (SUSE OS). I re-ran the test to see if it is still failing, but it's queued. It was failing on the |= operation you used. Maybe we need an alternative so it works across OSes (Ubuntu, RHEL and SLES) |
f3a7611 to
8820edd
Compare
yhuiYH
left a comment
There was a problem hiding this comment.
OK, please resolve any PR comments once you've addressed them. It also makes the PR look cleaner and easier for others to read.
8820edd to
b5a8dd8
Compare
b5a8dd8 to
6de2e41
Compare
|
I think this one is ready to merge, but we can't merge due to PSDB failing (unrelated tests) |
(#311) * Use queries instead of views in summary.py * Export queries when created * Remove HIP and HSA from output * Fix domain query * Export summary queries in the main function * Fix comments and variable names * Change syntax for old python versions [rocm-systems] ROCm/rocm-systems#311 (commit 646e4d2)
* Use queries instead of views in summary.py * Export queries when created * Remove HIP and HSA from output * Fix domain query * Export summary queries in the main function * Fix comments and variable names * Change syntax for old python versions --------- Co-authored-by: Young Hui <young.hui@amd.com>
* Use queries instead of views in summary.py * Export queries when created * Remove HIP and HSA from output * Fix domain query * Export summary queries in the main function * Fix comments and variable names * Change syntax for old python versions --------- Co-authored-by: Young Hui <young.hui@amd.com>
Changes: - Changed HIP_UUID to reference rsmi_dev_unique_id_get() - Added better logging for amdsmi_get_gpu_device_uuid() references Change-Id: Ie233044de8c6e85b807faf22121b450233db861b Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Changes: - Changed HIP_UUID to reference rsmi_dev_unique_id_get() - Added better logging for amdsmi_get_gpu_device_uuid() references Change-Id: Ie233044de8c6e85b807faf22121b450233db861b Signed-off-by: Charis Poag <Charis.Poag@amd.com> [ROCm/amdsmi commit: 817c077]
Changes: - Changed HIP_UUID to reference rsmi_dev_unique_id_get() - Added better logging for amdsmi_get_gpu_device_uuid() references Change-Id: Ie233044de8c6e85b807faf22121b450233db861b Signed-off-by: Charis Poag <Charis.Poag@amd.com> [ROCm/amdsmi commit: 817c077]
A copy paste mistake in a previous commit caused source and dest to be reversed. Correct the source and dest params. Fixes: 6de67d5 Signed-off-by: Allen Hubbe <allen.hubbe@amd.com>



PR Details
Associated Jira Ticket Number/Link
SWDEV-547687
What type of PR is this? (check all applicable)
Technical details
Added/updated tests?
Updated CHANGELOG?
Added/Updated documentation?
🔁 Imported from ROCm/rocprofiler-sdk#102
🧑💻 Originally authored by @rocm-devops