Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
(Hope to) fix number of cores for VMs.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 20 Feb 2019 15:12:02 +0000 (16:12 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 20 Feb 2019 15:12:02 +0000 (16:12 +0100)
The bug was apparently introduced by commit 5a469c9dca9ce25cee1a52682d7eb7bbd736a49b.

src/plugins/vm/s4u_VirtualMachine.cpp

index 06626a8..45a9899 100644 (file)
@@ -45,7 +45,7 @@ VirtualMachine::VirtualMachine(std::string name, s4u::Host* physical_host, int c
   for (int i = 0; i < physical_host->get_pstate_count(); i++)
     speeds.push_back(physical_host->get_pstate_speed(i));
 
-  surf_cpu_model_vm->create_cpu(this, &speeds, physical_host->get_core_count());
+  surf_cpu_model_vm->create_cpu(this, &speeds, core_amount);
   if (physical_host->get_pstate() != 0)
     set_pstate(physical_host->get_pstate());
 }