Vector Optimized Library of Kernels  2.0
Architecture-tuned implementations of math kernels
volk_prefs.h
Go to the documentation of this file.
1 #ifndef INCLUDED_VOLK_PREFS_H
2 #define INCLUDED_VOLK_PREFS_H
3 
4 #include <volk/volk_common.h>
5 #include <stdbool.h>
6 #include <stdlib.h>
7 
9 
10 typedef struct volk_arch_pref
11 {
12  char name[128]; //name of the kernel
13  char impl_a[128]; //best aligned impl
14  char impl_u[128]; //best unaligned impl
16 
18 // get path to volk_config profiling info; second arguments specifies
19 // if config file should be tested on existence for reading.
20 // returns \0 in the argument on failure.
22 VOLK_API void volk_get_config_path(char *, bool);
23 
25 // load prefs into global prefs struct
28 
30 
31 #endif //INCLUDED_VOLK_PREFS_H
VOLK_API
A function pointer to the fastest aligned implementation.
Definition: volk.tmpl.h:84
char impl_a[128]
Definition: volk_prefs.h:13
#define __VOLK_DECL_BEGIN
Definition: volk_common.h:60
#define __VOLK_DECL_END
Definition: volk_common.h:61
Definition: volk_prefs.h:10
__VOLK_DECL_BEGIN struct volk_arch_pref volk_arch_pref_t
VOLK_API size_t volk_load_preferences(volk_arch_pref_t **)
Definition: volk_prefs.c:65
VOLK_API void volk_get_config_path(char *, bool)
Definition: volk_prefs.c:14
char name[128]
Definition: volk_prefs.h:12
char impl_u[128]
Definition: volk_prefs.h:14