* 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/sysdep.h"
#include "xbt/dynar.h"
#include "instr/instr_private.h"
sd_global->task_number++;
-#ifdef HAVE_TRACING
TRACE_sd_task_create(task);
-#endif
return task;
}
res->bytes_amount[2] = amount;
res->kind = SD_TASK_COMM_E2E;
-#ifdef HAVE_TRACING
TRACE_category("COMM_E2E");
TRACE_sd_set_task_category(res, "COMM_E2E");
-#endif
return res;
}
res->flops_amount[0] = flops_amount;
res->kind = SD_TASK_COMP_SEQ;
-#ifdef HAVE_TRACING
TRACE_category("COMP_SEQ");
TRACE_sd_set_task_category(res, "COMP_SEQ");
-#endif
-return res;
+ return res;
}
/** @brief create a parallel computation task that can then be auto-scheduled
res->alpha = alpha;
res->kind = SD_TASK_COMP_PAR_AMDAHL;
-#ifdef HAVE_TRACING
TRACE_category("COMP_PAR_AMDAHL");
TRACE_sd_set_task_category(res, "COMP_PAR_AMDAHL");
-#endif
return res;
}
res->workstation_list=NULL;
res->kind = SD_TASK_COMM_PAR_MXN_1D_BLOCK;
-#ifdef HAVE_TRACING
TRACE_category("COMM_PAR_MXN_1D_BLOCK");
TRACE_sd_set_task_category(res, "COMM_PAR_MXN_1D_BLOCK");
-#endif
return res;
}
xbt_free(task->bytes_amount);
xbt_free(task->flops_amount);
-#ifdef HAVE_TRACING
TRACE_sd_task_destroy(task);
-#endif
xbt_mallocator_release(sd_global->task_mallocator,task);
sd_global->task_number--;
}
}
-#ifdef HAVE_TRACING
if (task->category)
XBT_INFO(" - tracing category: %s", task->category);
-#endif
XBT_INFO(" - amount: %.0f", SD_task_get_amount(task));
if (task->kind == SD_TASK_COMP_PAR_AMDAHL)
XBT_DEBUG("surf_action = %p", task->surf_action);
-#ifdef HAVE_TRACING
if (task->category)
TRACE_surf_action(task->surf_action, task->category);
-#endif
__SD_task_destroy_scheduling_data(task); /* now the scheduling data are not useful anymore */
__SD_task_set_state(task, SD_RUNNING);