GNU Radio 3.7.3 C++ API
volk_rank_archs.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2012 Free Software Foundation, Inc.
3  *
4  * This file is part of GNU Radio
5  *
6  * GNU Radio is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3, or (at your option)
9  * any later version.
10  *
11  * GNU Radio is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with GNU Radio; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef INCLUDED_VOLK_RANK_ARCHS_H
23 #define INCLUDED_VOLK_RANK_ARCHS_H
24 
25 #include <stdlib.h>
26 #include <stdbool.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 int volk_get_index(
33  const char *impl_names[], //list of implementations by name
34  const size_t n_impls, //number of implementations available
35  const char *impl_name //the implementation name to find
36 );
37 
38 int volk_rank_archs(
39  const char *kern_name, //name of the kernel to rank
40  const char *impl_names[], //list of implementations by name
41  const int* impl_deps, //requirement mask per implementation
42  const bool* alignment, //alignment status of each implementation
43  size_t n_impls, //number of implementations available
44  const bool align //if false, filter aligned implementations
45 );
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 #endif /*INCLUDED_VOLK_RANK_ARCHS_H*/
VOLK_API const char * impl_name
Definition: volk.tmpl.h:86
int volk_get_index(const char *impl_names[], const size_t n_impls, const char *impl_name)
int volk_rank_archs(const char *kern_name, const char *impl_names[], const int *impl_deps, const bool *alignment, size_t n_impls, const bool align)