Przeglądaj źródła

rename function starpu_display_codelet_stats to starpu_codelet_display_stats

Nathalie Furmento 12 lat temu
rodzic
commit
5071f678af

+ 4 - 4
doc/chapters/api.texi

@@ -1923,8 +1923,8 @@ involved in the parallel execution.
 @item @code{unsigned long per_worker_stats[STARPU_NMAXWORKERS]} (optional)
 Statistics collected at runtime: this is filled by StarPU and should not be
 accessed directly, but for example by calling the
-@code{starpu_display_codelet_stats} function (See
-@ref{starpu_display_codelet_stats} for details).
+@code{starpu_codelet_display_stats} function (See
+@ref{starpu_codelet_display_stats} for details).
 
 @item @code{const char *name} (optional)
 Define the name of the codelet. This can be useful for debugging purposes.
@@ -2274,8 +2274,8 @@ NULL if it is called either from a thread that is not a task or simply
 because there is no task being executed at the moment.
 @end deftypefun
 
-@deftypefun void starpu_display_codelet_stats ({struct starpu_codelet} *@var{cl})
-@anchor{starpu_display_codelet_stats}
+@deftypefun void starpu_codelet_display_stats ({struct starpu_codelet} *@var{cl})
+@anchor{starpu_codelet_display_stats}
 Output on @code{stderr} some statistics on the codelet @var{cl}.
 @end deftypefun
 

+ 1 - 1
examples/pi/pi.c

@@ -198,7 +198,7 @@ int main(int argc, char **argv)
 	FPRINTF(stderr, "Total time : %f ms\n", timing/1000.0);
 	FPRINTF(stderr, "Speed : %f GShot/s\n", total_shot_cnt/(1e3*timing));
 
-	if (!getenv("STARPU_SSILENT")) starpu_display_codelet_stats(&pi_cl);
+	if (!getenv("STARPU_SSILENT")) starpu_codelet_display_stats(&pi_cl);
 
 	starpu_shutdown();
 

+ 2 - 0
include/starpu_deprecated_api.h

@@ -88,6 +88,8 @@ typedef enum starpu_access_mode starpu_access_mode;
 #define starpu_depth_block_filter_func_block		starpu_block_filter_depth_block
 #define starpu_depth_block_shadow_filter_func_block	starpu_block_filter_depth_block_shadow
 
+#define starpu_display_codelet_stats		starpu_codelet_display_stats
+
 #endif /* STARPU_USE_DEPRECATED_ONE_ZERO_API */
 
 #ifdef __cplusplus

+ 2 - 2
include/starpu_task.h

@@ -105,7 +105,7 @@ struct starpu_codelet
 	struct starpu_perfmodel *power_model;
 
 	/* statistics collected at runtime: this is filled by StarPU and should
-	 * not be accessed directly (use the starpu_display_codelet_stats
+	 * not be accessed directly (use the starpu_codelet_display_stats
 	 * function instead for instance). */
 	unsigned long per_worker_stats[STARPU_NMAXWORKERS];
 
@@ -346,7 +346,7 @@ int starpu_task_nsubmitted(void);
 
 void starpu_codelet_init(struct starpu_codelet *cl);
 
-void starpu_display_codelet_stats(struct starpu_codelet *cl);
+void starpu_codelet_display_stats(struct starpu_codelet *cl);
 
 /* Return the task currently executed by the worker, or NULL if this is called
  * either from a thread that is not a task or simply because there is no task

+ 1 - 1
src/core/task.c

@@ -628,7 +628,7 @@ void starpu_codelet_init(struct starpu_codelet *cl)
 	memset(cl, 0, sizeof(struct starpu_codelet));
 }
 
-void starpu_display_codelet_stats(struct starpu_codelet *cl)
+void starpu_codelet_display_stats(struct starpu_codelet *cl)
 {
 	unsigned worker;
 	unsigned nworkers = starpu_worker_get_count();