A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
surfCpuModel add execute on host
[simgrid.git]
/
src
/
surf
/
cpu_interface.cpp
diff --git
a/src/surf/cpu_interface.cpp
b/src/surf/cpu_interface.cpp
index
8fbf799
..
1a08d36
100644
(file)
--- a/
src/surf/cpu_interface.cpp
+++ b/
src/surf/cpu_interface.cpp
@@
-207,6
+207,11
@@
Cpu::~Cpu(){
xbt_free(p_constraintCoreId);
}
+double Cpu::getCurrentPowerPeak()
+{
+ return m_powerPeak;
+}
+
double Cpu::getSpeed(double load)
{
return load * m_powerPeak;