X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e38ff5cd0c1d4bcbb38c2c1d68618f19358122f..1cc8c14862e9b7a54cf8ffdfc016dff027d613d7:/examples/simdag/mixtesim/include/list_scheduling.h diff --git a/examples/simdag/mixtesim/include/list_scheduling.h b/examples/simdag/mixtesim/include/list_scheduling.h deleted file mode 100644 index 13bbf67d53..0000000000 --- a/examples/simdag/mixtesim/include/list_scheduling.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef LIST_SCHEDULING_H -#define LIST_SCHEDULING_H - -#include -#include -#include - -void allocateNodeAttributes(DAG dag); -void freeNodeAttributes(DAG dag); -void allocateHostAttributes(); -void freeHostAttributes(); -void implementSimgridSchedule(DAG dag, Node *list); - -/* Link local_link; */ - -#define LIST_SCHEDULING_NOT_SCHEDULED 0 -#define LIST_SCHEDULING_READY 1 -#define LIST_SCHEDULING_SCHEDULED 2 -#define LIST_SCHEDULING_RUNNING 3 - - - -/**************/ -/* Attributes */ -/**************/ - -typedef struct _NodeAttribute *NodeAttribute; -typedef struct _HostAttribute *HostAttribute; - -struct _NodeAttribute { - SD_workstation_t host; /* The host on which the node has been scheduled */ - SD_link_t link; /* The link on which the transfer is running */ - double start; /* time the task is supposed to start */ - double finish; /* time the task is supposed to finish */ - int state; /* scheduled, not scheduled, ready */ - double SL; - int tag; - - double mean_cost; /* used by heft */ - double rank_u; /* used by heft */ - - double data_available; -}; - -struct _HostAttribute { - double first_available; - int nb_nodes; - int *nodes; - int state; -}; - -#define NODE_ATTR(x) ((NodeAttribute)(x->metadata)) -#define HOST_ATTR(x) ((HostAttribute)(SD_workstation_get_data(x))) - -#endif