Vector Optimized Library of Kernels 2.5.1
Architecture-tuned implementations of math kernels
 
Loading...
Searching...
No Matches
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 <stdbool.h>
26#include <stdlib.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32int volk_get_index(const char* impl_names[], // list of implementations by name
33 const size_t n_impls, // number of implementations available
34 const char* impl_name // the implementation name to find
35);
36
37int volk_rank_archs(const char* kern_name, // name of the kernel to rank
38 const char* impl_names[], // list of implementations by name
39 const int* impl_deps, // requirement mask per implementation
40 const bool* alignment, // alignment status of each implementation
41 size_t n_impls, // number of implementations available
42 const bool align // if false, filter aligned implementations
43);
44
45#ifdef __cplusplus
46}
47#endif
48#endif /*INCLUDED_VOLK_RANK_ARCHS_H*/
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)
Definition: volk_rank_archs.c:47
int volk_get_index(const char *impl_names[], const size_t n_impls, const char *impl_name)
Definition: volk_rank_archs.c:30