Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SURF/S4U] Rename Cpu::getCore() to Cpu::getCoreCount()
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 8 Sep 2016 12:26:31 +0000 (14:26 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 8 Sep 2016 12:28:15 +0000 (14:28 +0200)
src/s4u/s4u_host.cpp
src/surf/cpu_interface.cpp
src/surf/cpu_interface.hpp

index d38b8e0..7d13e33 100644 (file)
@@ -165,7 +165,7 @@ double Host::speed() {
 }
 /** @brief Returns the number of core of the processor. */
 int Host::coresCount() {
-  return pimpl_cpu->getCore();
+  return pimpl_cpu->getCoreCount();
 }
 
 /** @brief Set the pstate at which the host should run */
index 3427096..ed4f8dd 100644 (file)
@@ -203,8 +203,7 @@ void Cpu::onSpeedChange() {
   TRACE_surf_host_set_speed(surf_get_clock(), getName(), coresAmount_ * speed_.scale * speed_.peak);
 }
 
-
-int Cpu::getCore()
+int Cpu::getCoreCount()
 {
   return coresAmount_;
 }
index 5e85657..9ddf06a 100644 (file)
@@ -106,7 +106,7 @@ public:
   virtual simgrid::surf::Action *sleep(double duration)=0;
 
   /** @brief Get the amount of cores */
-  virtual int getCore();
+  virtual int getCoreCount();
 
   /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */
   virtual double getSpeed(double load);