A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
attempt to fully trace ptasks
[simgrid.git]
/
src
/
simdag
/
sd_dotloader.cpp
diff --git
a/src/simdag/sd_dotloader.cpp
b/src/simdag/sd_dotloader.cpp
index
4979a2e
..
581f151
100644
(file)
--- a/
src/simdag/sd_dotloader.cpp
+++ b/
src/simdag/sd_dotloader.cpp
@@
-213,8
+213,7
@@
xbt_dynar_t SD_dotload_generic(const char* filename, bool sequential, bool sched
if(schedule){
if (schedule_success) {
if(schedule){
if (schedule_success) {
- std::vector<simgrid::s4u::Host*> hosts;
- simgrid::s4u::Engine::getInstance()->getHostList(&hosts);
+ std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::get_instance()->get_all_hosts();
for (auto const& elm : computers) {
SD_task_t previous_task = nullptr;
for (auto const& elm : computers) {
SD_task_t previous_task = nullptr;
@@
-240,7
+239,7
@@
xbt_dynar_t SD_dotload_generic(const char* filename, bool sequential, bool sched
}
if (result && not acyclic_graph_detail(result)) {
}
if (result && not acyclic_graph_detail(result)) {
- std::string base = simgrid::xbt::Path(filename).get
Base
name();
+ std::string base = simgrid::xbt::Path(filename).get
_base_
name();
XBT_ERROR("The DOT described in %s is not a DAG. It contains a cycle.", base.c_str());
xbt_dynar_free(&result);
result = nullptr;
XBT_ERROR("The DOT described in %s is not a DAG. It contains a cycle.", base.c_str());
xbt_dynar_free(&result);
result = nullptr;