From 8b04d29221719239b52a300a338513f05746ed7f Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sat, 16 Apr 2011 10:05:43 -0700 Subject: Volk: split n_archs out of arch_defs[0], began to add _manual support --- volk/lib/volk_rank_archs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'volk/lib/volk_rank_archs.h') diff --git a/volk/lib/volk_rank_archs.h b/volk/lib/volk_rank_archs.h index 26b9f7503..8fa0631ee 100644 --- a/volk/lib/volk_rank_archs.h +++ b/volk/lib/volk_rank_archs.h @@ -5,7 +5,7 @@ extern "C" { #endif -unsigned int volk_rank_archs(const int* arch_defs, unsigned int arch); +unsigned int volk_rank_archs(const int* arch_defs, unsigned int n_archs, unsigned int arch); #ifdef __cplusplus -- cgit From e3997ada93a25569a05bbfd615d73d00cee6eca5 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Tue, 10 May 2011 21:52:23 -0700 Subject: Volk: initial profiling support. Profiling works, reading doesn't yet. Need to add name field to volk arch_defs --- volk/lib/volk_rank_archs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'volk/lib/volk_rank_archs.h') diff --git a/volk/lib/volk_rank_archs.h b/volk/lib/volk_rank_archs.h index 8fa0631ee..37a0fbc46 100644 --- a/volk/lib/volk_rank_archs.h +++ b/volk/lib/volk_rank_archs.h @@ -6,7 +6,12 @@ extern "C" { #endif unsigned int volk_rank_archs(const int* arch_defs, unsigned int n_archs, unsigned int arch); - + +//////////////////////////////////////////////////////////////////////// +//get path to volk_config profiling info +//////////////////////////////////////////////////////////////////////// +void get_config_path(char *); +void load_preferences(void); //FIXME DEBUG shouldn't be exported #ifdef __cplusplus } -- cgit From b50dbc4498842fecd7f0c6adc22f25726f8d27d3 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 11 May 2011 21:45:03 -0700 Subject: Volk: Profiler is in apps/ now. Added name to function info. Going to C++-ify the whole thing. --- volk/lib/volk_rank_archs.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'volk/lib/volk_rank_archs.h') diff --git a/volk/lib/volk_rank_archs.h b/volk/lib/volk_rank_archs.h index 37a0fbc46..ba248aa59 100644 --- a/volk/lib/volk_rank_archs.h +++ b/volk/lib/volk_rank_archs.h @@ -5,13 +5,7 @@ extern "C" { #endif -unsigned int volk_rank_archs(const int* arch_defs, unsigned int n_archs, unsigned int arch); - -//////////////////////////////////////////////////////////////////////// -//get path to volk_config profiling info -//////////////////////////////////////////////////////////////////////// -void get_config_path(char *); -void load_preferences(void); //FIXME DEBUG shouldn't be exported +unsigned int volk_rank_archs(const int* arch_defs, unsigned int n_archs, const char *name, unsigned int arch); #ifdef __cplusplus } -- cgit From 30fdc38d20d4e38908059b6e351c550de5741621 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 12 May 2011 14:21:17 -0700 Subject: Volk: profiling works. loads prefs on init. volk_rank_archs looks in prefs first. --- volk/lib/volk_rank_archs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'volk/lib/volk_rank_archs.h') diff --git a/volk/lib/volk_rank_archs.h b/volk/lib/volk_rank_archs.h index ba248aa59..546240d2c 100644 --- a/volk/lib/volk_rank_archs.h +++ b/volk/lib/volk_rank_archs.h @@ -5,7 +5,8 @@ extern "C" { #endif -unsigned int volk_rank_archs(const int* arch_defs, unsigned int n_archs, const char *name, unsigned int arch); +unsigned int get_index(const char *indices[], unsigned int n_archs, const char *arch_name); +unsigned int volk_rank_archs(const char *indices[], const int* arch_defs, unsigned int n_archs, const char *name, unsigned int arch); #ifdef __cplusplus } -- cgit