diff options
author | Tony Gutierrez <anthony.gutierrez@amd.com> | 2016-10-26 22:47:30 -0400 |
---|---|---|
committer | Tony Gutierrez <anthony.gutierrez@amd.com> | 2016-10-26 22:47:30 -0400 |
commit | 98d8a7051d8caa9b5aebebe5bf16f9d731c34c0e (patch) | |
tree | 2b5e8751e90174376fd66157d4690987eec7638b /src/gpu-compute/compute_unit.hh | |
parent | c7a79c9a4298220852252738dbf5d7d174705333 (diff) | |
download | gem5-98d8a7051d8caa9b5aebebe5bf16f9d731c34c0e.tar.xz |
gpu-compute: add instruction mix stats for the gpu
Diffstat (limited to 'src/gpu-compute/compute_unit.hh')
-rw-r--r-- | src/gpu-compute/compute_unit.hh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gpu-compute/compute_unit.hh b/src/gpu-compute/compute_unit.hh index 938658fd1..2187bec38 100644 --- a/src/gpu-compute/compute_unit.hh +++ b/src/gpu-compute/compute_unit.hh @@ -301,6 +301,31 @@ class ComputeUnit : public MemObject LdsState &lds; public: + Stats::Scalar vALUInsts; + Stats::Formula vALUInstsPerWF; + Stats::Scalar sALUInsts; + Stats::Formula sALUInstsPerWF; + Stats::Scalar instCyclesVALU; + Stats::Scalar instCyclesSALU; + Stats::Scalar threadCyclesVALU; + Stats::Formula vALUUtilization; + Stats::Scalar ldsNoFlatInsts; + Stats::Formula ldsNoFlatInstsPerWF; + Stats::Scalar flatVMemInsts; + Stats::Formula flatVMemInstsPerWF; + Stats::Scalar flatLDSInsts; + Stats::Formula flatLDSInstsPerWF; + Stats::Scalar vectorMemWrites; + Stats::Formula vectorMemWritesPerWF; + Stats::Scalar vectorMemReads; + Stats::Formula vectorMemReadsPerWF; + Stats::Scalar scalarMemWrites; + Stats::Formula scalarMemWritesPerWF; + Stats::Scalar scalarMemReads; + Stats::Formula scalarMemReadsPerWF; + + void updateInstStats(GPUDynInstPtr gpuDynInst); + // the following stats compute the avg. TLB accesslatency per // uncoalesced request (only for data) Stats::Scalar tlbRequests; |