zsim icon indicating copy to clipboard operation
zsim copied to clipboard

cycle Vs. haltedCycles in getUnhaltedCycles function

Open ShehabElsayed opened this issue 8 years ago • 1 comments

As far as I understand 'cycle' should be the total cycles including active and halted cycles for a given core. In other words, if we were to keep track of 'lastCycle' and 'lastHaltedCycles' as the values of cycle and 'haltedCycles' the last time the 'getUnhaltedCycles(...)' function was called then the following should be always true:

cycle - lastCycle >= haltedCycles - lastHaltedCycles

Is my understanding correct?

The reason I am asking is that I am seeing different behavior where the above condition is sometimes not met. This results in an assertion failure in process_stats.cpp (assert(cCycles >= lastCoreCycles[cid] && cInstrs >= lastCoreInstrs[cid]);)

ShehabElsayed avatar Dec 08 '17 16:12 ShehabElsayed

Hello, did you fix the issue? I am having the same assertion error.

jin8495 avatar Jan 11 '21 02:01 jin8495