Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#31] Intermediate stats generation #33

Merged
merged 1 commit into from May 6, 2016
Merged

[#31] Intermediate stats generation #33

merged 1 commit into from May 6, 2016

Conversation

efzulian
Copy link
Contributor

@efzulian efzulian commented May 1, 2016

Intermediate results can be obtained with the following sequence:

-- Send a NOP command to any bank, here using bank 0
DRAMPower->doCommand(MemCommand::NOP, 0, clock_cycles);

-- Update counters using "false" since this is not the end of the simulation
DRAMPower->updateCounters(false);

-- Calculate energy
DRAMPower->calcEnergy();

-- Obtain current energy and power values
currentTotalEnergy = DRAMPower->getEnergy().total_energy;
currentAveragePower = DRAMPower->getPower().average_power;

-- Reset internal counters
DRAMPower->clearCounters(clock_cycles);

Note:
If intermediate results are needed it may be interesting to the application to
accumulate the energy obtanined since the library counters are cleared.

Intermediate results can be obtained with the following sequence:

-- Send a NOP command to any bank, here using bank 0
DRAMPower->doCommand(MemCommand::NOP, 0, clock_cycles);

-- Update counters using "false" since this is not the end of the simulation
DRAMPower->updateCounters(false);

-- Calculate energy
DRAMPower->calcEnergy();

-- Obtain current energy and power values
currentTotalEnergy = DRAMPower->getEnergy().total_energy;
currentAveragePower = DRAMPower->getPower().average_power;

-- Reset internal counters
DRAMPower->clearCounters(clock_cycles);

Note:
If intermediate results are needed it may be interesting to the application to
accumulate the energy obtanined since the library counters are cleared.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 83.668% when pulling 08fc1a6 on efzulian:master into 57d4652 on ravenrd:master.

@efzulian
Copy link
Contributor Author

efzulian commented May 1, 2016

Hi Sven, this is the pull request to the issue #31.
Regards,
Éder

@Sv3n Sv3n merged commit 51f2b53 into tukl-msd:master May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants