Selaa lähdekoodia

perfmodel: Rename public function starpu_list_models to starpu_perfmodel_list

Nathalie Furmento 13 vuotta sitten
vanhempi
commit
36a9619038

+ 1 - 1
doc/chapters/basic-api.texi

@@ -2002,7 +2002,7 @@ returns the architecture name for @var{arch}.
 returns the architecture type of a given worker.
 @end deftypefun
 
-@deftypefun int starpu_list_models ({FILE *}@var{output})
+@deftypefun int starpu_perfmodel_list ({FILE *}@var{output})
 prints a list of all performance models on @var{output}.
 @end deftypefun
 

+ 1 - 1
include/starpu_perfmodel.h

@@ -201,7 +201,7 @@ enum starpu_perf_archtype starpu_worker_get_perf_archtype(int workerid);
 int starpu_perfmodel_load_symbol(const char *symbol, struct starpu_perfmodel *model);
 void starpu_perfmodel_debugfilepath(struct starpu_perfmodel *model, enum starpu_perf_archtype arch, char *path, size_t maxlen, unsigned nimpl);
 void starpu_perfmodel_get_arch_name(enum starpu_perf_archtype arch, char *archname, size_t maxlen, unsigned nimpl);
-int starpu_list_models(FILE *output);
+int starpu_perfmodel_list(FILE *output);
 
 void starpu_perfmodel_update_history(struct starpu_perfmodel *model, struct starpu_task *, enum starpu_perf_archtype arch, unsigned cpuid, unsigned nimpl, double measured);
 

+ 1 - 1
src/core/perfmodel/perfmodel_history.c

@@ -846,7 +846,7 @@ void _starpu_load_history_based_model(struct starpu_perfmodel *model, unsigned s
 
 /* This function is intended to be used by external tools that should read
  * the performance model files */
-int starpu_list_models(FILE *output)
+int starpu_perfmodel_list(FILE *output)
 {
         char path[256];
         DIR *dp;

+ 1 - 0
tools/dev/rename.sed

@@ -14,6 +14,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
+s/\bstarpu_list_models\b/starpu_perfmodel_list/g
 s/\bstruct starpu_model_list\b/struct _starpu_perfmodel_list/g
 s/\bstarpu_load_history_debug\b/starpu_perfmodel_load_symbol/g
 s/\bstarpu_access_mode\b/enum starpu_access_mode/g

+ 1 - 1
tools/starpu_perfmodel_display.c

@@ -374,7 +374,7 @@ int main(int argc, char **argv)
 
         if (list)
 	{
-                int ret = starpu_list_models(stdout);
+                int ret = starpu_perfmodel_list(stdout);
                 if (ret)
 		{
                         fprintf(stderr, "The performance model directory is invalid\n");

+ 1 - 1
tools/starpu_perfmodel_plot.c

@@ -414,7 +414,7 @@ int main(int argc, char **argv)
 	parse_args(argc, argv);
 
         if (list) {
-                int ret = starpu_list_models(stdout);
+                int ret = starpu_perfmodel_list(stdout);
                 if (ret) {
                         fprintf(stderr, "The performance model directory is invalid\n");
                         return 1;