瀏覽代碼

include: move definition of starpu_timing_now from starpu_scheduler to starpu_util

Nathalie Furmento 12 年之前
父節點
當前提交
466d3930d5
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 0 2
      include/starpu_scheduler.h
  2. 3 0
      include/starpu_util.h

+ 0 - 2
include/starpu_scheduler.h

@@ -124,8 +124,6 @@ int starpu_prefetch_task_input_on_node(struct starpu_task *task, unsigned node);
  *	Performance predictions
  */
 
-/* Return the current date in us */
-double starpu_timing_now(void);
 /* Returns the perfmodel footprint for the task */
 uint32_t starpu_task_footprint(struct starpu_perfmodel *model, struct starpu_task *task, enum starpu_perf_archtype arch, unsigned nimpl);
 /* Returns expected task duration in us */

+ 3 - 0
include/starpu_util.h

@@ -263,6 +263,9 @@ void starpu_execute_on_specific_workers(void (*func)(void*), void * arg, unsigne
  * copied, and it is given the callback_arg pointer as argument.*/
 int starpu_data_cpy(starpu_data_handle_t dst_handle, starpu_data_handle_t src_handle, int asynchronous, void (*callback_func)(void*), void *callback_arg);
 
+/* Return the current date in us */
+double starpu_timing_now(void);
+
 #ifdef __cplusplus
 }
 #endif