X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4636dcbf566244aa2c2bff539d0410dae1071c81..3d489fd0ea1a24796b898737fdd6a67a8b7bedab:/src/simdag/simdag_private.h diff --git a/src/simdag/simdag_private.h b/src/simdag/simdag_private.h index 331a2c394c..9691647fbd 100644 --- a/src/simdag/simdag_private.h +++ b/src/simdag/simdag_private.h @@ -7,23 +7,25 @@ #ifndef SIMDAG_PRIVATE_H #define SIMDAG_PRIVATE_H #include +#include #include "xbt/dynar.h" #include "simgrid/simdag.h" #include "surf/surf.h" #include "xbt/mallocator.h" #include +#if HAVE_JEDULE +#include "simgrid/jedule/jedule_sd_binding.h" +#endif SG_BEGIN_DECL() /* Global variables */ typedef struct SD_global { - xbt_mallocator_t task_mallocator; /* to not remalloc new tasks */ - bool watch_point_reached; /* has a task just reached a watch point? */ std::set *initial_tasks; - std::set *executable_tasks; + std::set *runnable_tasks; std::set *completed_tasks; xbt_dynar_t return_set; @@ -49,23 +51,16 @@ typedef struct SD_task { int marked; /* used to check if the task DAG has some cycle*/ /* dependencies */ - int unsatisfied_dependencies; - unsigned int is_not_ready; - std::set *inputs; std::set *outputs; std::set *predecessors; std::set *successors; /* scheduling parameters (only exist in state SD_SCHEDULED) */ - int host_count; - sg_host_t *host_list; + std::vector *allocation; double *flops_amount; double *bytes_amount; double rate; - - long long int counter; /* task unique identifier for instrumentation */ - char *category; /* sd task category for instrumentation */ } s_SD_task_t; /* SimDag private functions */ @@ -74,10 +69,5 @@ XBT_PRIVATE void SD_task_run(SD_task_t task); XBT_PRIVATE bool acyclic_graph_detail(xbt_dynar_t dag); XBT_PRIVATE void uniq_transfer_task_name(SD_task_t task); -/* Task mallocator functions */ -XBT_PRIVATE void* SD_task_new_f(void); -XBT_PRIVATE void SD_task_recycle_f(void *t); -XBT_PRIVATE void SD_task_free_f(void *t); - SG_END_DECL() #endif