]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/cpu_interface.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Torus/Fat-Tree/Dragonfly: Aggregate callbacks
[simgrid.git] / src / surf / cpu_interface.hpp
index f96a75d46ec820b0eb26ac2fea185ab8fad34da9..03dffc67111c475276a649bf9534a85a35a4b36f 100644 (file)
@@ -97,13 +97,20 @@ public:
 
   virtual int get_pstate_count() const { return speed_per_pstate_.size(); }
 
-  virtual void set_pstate(int pstate_index);
   virtual int get_pstate() const { return pstate_; }
+  virtual Cpu* set_pstate(int pstate_index);
 
-  /*< @brief Setup the trace file with availability events (peak speed changes due to external load).
-   * Trace must contain relative values (ratio between 0 and 1)
+  /*< @brief Setup the profile file with availability events (peak speed changes due to external load).
+   * Profile must contain relative values (ratio between 0 and 1)
    */
-  virtual void set_speed_profile(profile::Profile* profile);
+  virtual Cpu* set_speed_profile(profile::Profile* profile);
+
+  /**
+   * @brief Set the CPU's speed
+   *
+   * @param speed_per_state list of powers for this processor (default power is at index 0)
+   */
+  Cpu* set_pstate_speed(const std::vector<double>& speed_per_state);
 
   /**
    * @brief Execute some quantity of computation