Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a stupid error: actually plug the CPU into the host...
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Dec 2015 08:53:29 +0000 (09:53 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Dec 2015 08:53:29 +0000 (09:53 +0100)
src/surf/cpu_interface.cpp

index 78785a9..0bb5ed6 100644 (file)
@@ -152,7 +152,7 @@ Cpu::Cpu(Model *model, simgrid::Host *host,
  , m_speedScale(speedScale)
  , m_host(host)
 {
-
+  host->extension_set(Cpu::EXTENSION_ID, this);
 }
 
 Cpu::Cpu(Model *model, simgrid::Host *host,
@@ -164,6 +164,7 @@ Cpu::Cpu(Model *model, simgrid::Host *host,
  , m_speedScale(speedScale)
  , m_host(host)
 {
+  host->extension_set(Cpu::EXTENSION_ID, this);
   /* Currently, we assume that a VM does not have a multicore CPU. */
   if (core > 1)
     xbt_assert(model == surf_cpu_model_pm);