summaryrefslogtreecommitdiff
path: root/si-report.py
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-07-11 21:55:16 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-07-22 22:37:15 +0200
commitf826074b5672b07ac1ce1811bf8ee1e9af3f9057 (patch)
tree8a715e7a7670fbab0d15bfb42da5cfd8c667897f /si-report.py
parentb2a4505613706a0a4c8f0929acee3306a9ee43e6 (diff)
si-report.py: report scratch in terms of VGPRs = dwords per thread
Scratch VGPRs = spilled VGPRs + private memory per thread + an incorrectly-counted multiple of spilled SGPRs Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'si-report.py')
-rwxr-xr-xsi-report.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/si-report.py b/si-report.py
index 3e39350..c5855ff 100755
--- a/si-report.py
+++ b/si-report.py
@@ -60,9 +60,9 @@ class si_stats:
('vgprs', 'VGPRS', ''),
('spilled_sgprs', 'Spilled SGPRs', ''),
('spilled_vgprs', 'Spilled VGPRs', ''),
+ ('scratch_vgprs', 'Scratch VGPRs', 'dwords per thread'),
('code_size', 'Code Size', 'bytes'),
('lds', 'LDS', 'blocks'),
- ('scratch', 'Scratch', 'bytes per wave'),
('maxwaves', 'Max Waves', ''),
('waitstates', 'Wait states', ''),
]
@@ -188,7 +188,7 @@ class si_parser(object):
self._stats.spilled_vgprs = int(match.group(8))
self._stats.code_size = int(match.group(3))
self._stats.lds = int(match.group(4))
- self._stats.scratch = int(match.group(5))
+ self._stats.scratch_vgprs = int(match.group(5)) / (64 * 4)
self._stats.maxwaves = int(match.group(6))
old_stats = self._stats
self._stats = None