From e51e698b74c70c3bc5689e2fb226a6f8f9d2b141 Mon Sep 17 00:00:00 2001 From: Matthew Poremba Date: Tue, 22 Jun 2021 18:39:01 -0500 Subject: [PATCH] arch-vega: Update instruction stats These stats were moved to a Stats::Group but the instructions were not updated to use the stats struct. Change-Id: I49348e30bc0988a2a873f51bd7079c1f315649b4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47104 Tested-by: kokoro Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair --- src/arch/amdgpu/vega/insts/instructions.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/arch/amdgpu/vega/insts/instructions.cc b/src/arch/amdgpu/vega/insts/instructions.cc index cf5c415ae8..96ef0318e2 100644 --- a/src/arch/amdgpu/vega/insts/instructions.cc +++ b/src/arch/amdgpu/vega/insts/instructions.cc @@ -4173,7 +4173,7 @@ namespace VegaISA wf->computeUnit->cu_id, wf->wgId, refCount); wf->computeUnit->registerManager.freeRegisters(wf); - wf->computeUnit->completedWfs++; + wf->computeUnit->stats.completedWfs++; wf->computeUnit->activeWaves--; panic_if(wf->computeUnit->activeWaves < 0, "CU[%d] Active waves less " @@ -4184,7 +4184,7 @@ namespace VegaISA for (int i = 0; i < wf->vecReads.size(); i++) { if (wf->rawDist.find(i) != wf->rawDist.end()) { - wf->readsPerWrite.sample(wf->vecReads.at(i)); + wf->stats.readsPerWrite.sample(wf->vecReads.at(i)); } } wf->vecReads.clear(); @@ -4226,7 +4226,7 @@ namespace VegaISA if (!kernelEnd || !relNeeded) { wf->computeUnit->shader->dispatcher().notifyWgCompl(wf); wf->setStatus(Wavefront::S_STOPPED); - wf->computeUnit->completedWGs++; + wf->computeUnit->stats.completedWGs++; return; } @@ -4254,7 +4254,7 @@ namespace VegaISA // call shader to prepare the flush operations wf->computeUnit->shader->prepareFlush(gpuDynInst); - wf->computeUnit->completedWGs++; + wf->computeUnit->stats.completedWGs++; } else { wf->computeUnit->shader->dispatcher().scheduleDispatch(); }