-/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
double HostCLM03Model::next_occurring_event(double /*now*/)
{
/* nothing specific to be done here
- * surf_solve already calls all the models next_occurring_event properly */
+ * EngineImpl::solve already calls all the models next_occurring_event properly */
return -1.0;
}
return action;
}
+Action* HostCLM03Model::execute_thread(const s4u::Host* host, double flops_amount, int thread_count)
+{
+ auto cpu = host->get_cpu();
+ /* Create a single action whose cost is thread_count * flops_amount and that requests thread_count cores. */
+ return cpu->execution_start(thread_count * flops_amount, thread_count, -1);
+}
+
} // namespace resource
} // namespace kernel
} // namespace simgrid