X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1b4e20873a7bd405842f3d8d1e6dd1d518db5535..6c12a132ca10eefd1d566e489e837e459db4d979:/src/simdag/sd_daxloader.c diff --git a/src/simdag/sd_daxloader.c b/src/simdag/sd_daxloader.c index 87b0c9dc83..a1b942ef51 100644 --- a/src/simdag/sd_daxloader.c +++ b/src/simdag/sd_daxloader.c @@ -1,11 +1,11 @@ -/* Copyright (c) 2009-2013. The SimGrid Team. +/* Copyright (c) 2009-2014. 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. */ #include "private.h" -#include "simdag/simdag.h" +#include "simgrid/simdag.h" #include "xbt/misc.h" #include "xbt/log.h" #include @@ -298,7 +298,6 @@ xbt_dynar_t SD_daxload(const char *filename) newfile = SD_task_create_comm_e2e(file->name, NULL, file->amount); SD_task_dependency_add(NULL, NULL, root_task, newfile); SD_task_dependency_add(NULL, NULL, newfile, depafter->dst); -#ifdef HAVE_TRACING if (depafter->src){ const char *category = depafter->src->category; if (category){ @@ -306,7 +305,6 @@ xbt_dynar_t SD_daxload(const char *filename) TRACE_sd_set_task_category(newfile, category); } } -#endif xbt_dynar_push(result, &newfile); } } else if (xbt_dynar_is_empty(file->tasks_after)) { @@ -314,7 +312,6 @@ xbt_dynar_t SD_daxload(const char *filename) newfile = SD_task_create_comm_e2e(file->name, NULL, file->amount); SD_task_dependency_add(NULL, NULL, depbefore->src, newfile); SD_task_dependency_add(NULL, NULL, newfile, end_task); -#ifdef HAVE_TRACING if (depbefore->src){ const char *category = depbefore->src->category; if (category){ @@ -322,7 +319,6 @@ xbt_dynar_t SD_daxload(const char *filename) TRACE_sd_set_task_category(newfile, category); } } -#endif xbt_dynar_push(result, &newfile); } } else { @@ -336,7 +332,6 @@ xbt_dynar_t SD_daxload(const char *filename) newfile = SD_task_create_comm_e2e(file->name, NULL, file->amount); SD_task_dependency_add(NULL, NULL, depbefore->src, newfile); SD_task_dependency_add(NULL, NULL, newfile, depafter->dst); -#ifdef HAVE_TRACING if (depbefore->src){ const char *category = depbefore->src->category; if (category){ @@ -344,7 +339,6 @@ xbt_dynar_t SD_daxload(const char *filename) TRACE_sd_set_task_category(newfile, category); } } -#endif xbt_dynar_push(result, &newfile); } } @@ -402,13 +396,11 @@ void STag_dax__job(void) runtime *= 4200000000.; /* Assume that timings were done on a 4.2GFlops machine. I mean, why not? */ // XBT_INFO("See ",A_dax__job_id,A_dax__job_runtime,runtime); current_job = SD_task_create_comp_seq(name, NULL, runtime); -#ifdef HAVE_TRACING char *category = A_dax__job_name; if (category){ TRACE_category (category); TRACE_sd_set_task_category(current_job, category); } -#endif xbt_dict_set(jobs, A_dax__job_id, current_job, NULL); free(name); xbt_dynar_push(result, ¤t_job);