Skip to content

Commit

Permalink
Updated the README
Browse files Browse the repository at this point in the history
Updated to WRENCH 1.7
  • Loading branch information
henricasanova committed Dec 16, 2020
1 parent 424cd42 commit 9e12f4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ And, one of the following:
## Dependencies

- [Batsched](https://gitlab.inria.fr/batsim/batsched)
- [WRENCH](https://github.com/wrench-project/wrench) - Built with ```cmake -DENABLE_BATSCHED=on```
- [WRENCH version 1.7](https://wrench-project.org/downloads.html) - Built with ```cmake -DENABLE_BATSCHED=on```

## Installation

Expand Down
6 changes: 3 additions & 3 deletions src/Simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ Workflow *Simulator::createIndepWorkflow(std::vector<std::string> spec_tokens) {
static std::uniform_int_distribution<unsigned long> m_udist(min_time, max_time);
for (unsigned long i = 0; i < num_tasks; i++) {
unsigned long flops = m_udist(rng);
auto t = workflow->addTask("Task_" + std::to_string(i), (double) flops, 1, 1, 1.0, 0.0);
auto t = workflow->addTask("Task_" + std::to_string(i), (double) flops, 1, 1, 1.0);
WRENCH_INFO("AAAAA %s %lf", t->getID().c_str(), t->getFlops() );
}

Expand Down Expand Up @@ -517,7 +517,7 @@ Workflow *Simulator::createLevelsWorkflow(std::vector<std::string> spec_tokens)
for (unsigned long t = 0; t < num_tasks[l]; t++) {
unsigned long flops = (*m_udists[l])(rng);
wrench::WorkflowTask *task = workflow->addTask("Task_l" + std::to_string(l) + "_" +
std::to_string(t), (double) flops, 1, 1, 1.0, 0.0);
std::to_string(t), (double) flops, 1, 1, 1.0);
tasks[l].push_back(task);
}
}
Expand Down Expand Up @@ -552,7 +552,7 @@ Workflow *Simulator::createDAXWorkflow(std::vector<std::string> spec_tokens) {
// Add task replicas
for (auto t : original_workflow->getTasks()) {
// WRENCH_INFO("t->getFlops() = %lf", t->getFlops());
workflow->addTask(t->getID(), t->getFlops(), 1, 1, 1.0, 0);
workflow->addTask(t->getID(), t->getFlops(), 1, 1, 1.0);
}

// Deal with all dependencies (brute-force, but whatever)
Expand Down
2 changes: 1 addition & 1 deletion src/StaticClusteringAlgorithms/ClusteredJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace wrench {
auto real_workflow = this->getTasks().at(0)->getWorkflow();
auto tmp_workflow = new Workflow();
for (auto real_task : this->getTasks()) {
tmp_workflow->addTask(real_task->getID(), 1.0, 1, 1, 1.0, 0);
tmp_workflow->addTask(real_task->getID(), 1.0, 1, 1, 1.0);
}

for (auto tmp_parent : this->getTasks()) {
Expand Down
2 changes: 1 addition & 1 deletion src/StaticClusteringAlgorithms/StaticClusteringWMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ void StaticClusteringWMS::mergeSingleParentSingleChildPairs(Workflow *workflow)
wrench::WorkflowTask *merged_task = workflow->addTask(
parent_to_merge->getID() + "_" + child_to_merge->getID(),
parent_to_merge->getFlops() + child_to_merge->getFlops(),
1, 1, 1.0, 0);
1, 1, 1.0);

for (auto parent : workflow->getTaskParents(parent_to_merge)) {
workflow->addControlDependency(parent, merged_task);
Expand Down

0 comments on commit 9e12f4c

Please sign in to comment.