arch-gcn3: convert vALU instruction counters from 32 to 64-bit
authorMatt Sinclair <Matthew.Sinclair@amd.com>
Sat, 21 Jul 2018 00:57:22 +0000 (20:57 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Thu, 16 Jul 2020 20:37:22 +0000 (20:37 +0000)
The vALU instruction counters were previously 32 bits, but for some
workloads this value wraps around and triggers an assert failure
because the max vALU operations are reached.  To resolve this, this
commit increases the counter size to 64 bits.

Change-Id: I90ed4514669485cfea7ccc37ba9d69665277bccb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29950
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
src/gpu-compute/shader.hh

index 238f6e05cfe843b9c0588f4445457d62d14b9ae6..3e2e5695090ee337d6214a67e47ac464d51a293f 100644 (file)
@@ -258,8 +258,8 @@ class Shader : public ClockedObject
     Stats::Vector vectorInstDstOperand;
     void regStats();
 
-    int max_valu_insts;
-    int total_valu_insts;
+    int64_t max_valu_insts;
+    int64_t total_valu_insts;
 
     Shader(const Params *p);
     ~Shader();