Sfoglia il codice sorgente

Fix callers of starpu_perfmodel_history_based_expected_perf

Samuel Thibault 10 anni fa
parent
commit
20b88ccf11

+ 2 - 2
doc/doxygen/chapters/api/performance_model.doxy

@@ -286,8 +286,8 @@ Return the latency of data transfer between two memory nodes
 \ingroup API_Performance_Model
 Return the estimated time to transfer a given size between two memory nodes.
 
-\fn double starpu_permodel_history_based_expected_perf(struct starpu_perfmodel *model, struct starpu_perfmodel_arch* arch, uint32_t footprint)
+\fn double starpu_perfmodel_history_based_expected_perf(struct starpu_perfmodel *model, struct starpu_perfmodel_arch* arch, uint32_t footprint)
 \ingroup API_Performance_Model
-todo
+Return the estimated time of a task whose model is named \p and whose footprint is \p footprint
 
 */

+ 2 - 2
include/starpu_deprecated_api.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2013  Université de Bordeaux
+ * Copyright (C) 2010-2013, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -67,7 +67,7 @@ extern "C"
 #define starpu_crc32_be					starpu_hash_crc32c_be
 #define starpu_crc32_string				starpu_hash_crc32c_string
 #define starpu_perf_archtype				starpu_perfmodel_archtype
-#define starpu_history_based_expected_perf		starpu_permodel_history_based_expected_perf
+#define starpu_history_based_expected_perf		starpu_perfmodel_history_based_expected_perf
 #define starpu_task_profiling_info			starpu_profiling_task_info
 #define starpu_worker_profiling_info			starpu_profiling_worker_info
 #define starpu_bus_profiling_info			starpu_profiling_bus_info

+ 1 - 1
sc_hypervisor/src/policies_utils/policy_tools.c

@@ -417,7 +417,7 @@ void sc_hypervisor_get_tasks_times(int nw, int nt, double times[nw][nt], int *wo
                 {
 			int worker = workers == NULL ? w : workers[w];
                         struct starpu_perfmodel_arch* arch = starpu_worker_get_perf_archtype(worker, STARPU_NMAX_SCHED_CTXS);
-                        double length = starpu_permodel_history_based_expected_perf(tp->cl->model, arch, tp->footprint);
+                        double length = starpu_perfmodel_history_based_expected_perf(tp->cl->model, arch, tp->footprint);
 
                         if (isnan(length))
                                 times[w][t] = NAN;