- simgrid::kernel::resource::Model::UpdateAlgo algo;
- if (cpu_optim_opt == "Lazy")
- algo = simgrid::kernel::resource::Model::UpdateAlgo::LAZY;
- else
- algo = simgrid::kernel::resource::Model::UpdateAlgo::FULL;
-
- auto cpu_model_pm = std::make_shared<simgrid::kernel::resource::CpuCas01Model>(algo);
- simgrid::kernel::EngineImpl::get_instance()->add_model(simgrid::kernel::resource::Model::Type::CPU_PM, cpu_model_pm,
- true);
+ auto cpu_model_pm = std::make_shared<simgrid::kernel::resource::CpuCas01Model>("Cpu_Cas01");
+ simgrid::kernel::EngineImpl::get_instance()->add_model(cpu_model_pm);