diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-01-25 15:06:23 -0800 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-01-25 15:06:23 -0800 |
commit | b0a23e876fe0f92afb2c55fd4fbce6427e9598d8 (patch) | |
tree | c9958340aec46063de20ac019c0975980dae88d4 | |
parent | f832c9789be9fec46e211be4fb2355013d19c000 (diff) |
Volk: doesn't test a routine if no valid architectures other than generic are found
-rw-r--r-- | volk/lib/qa_utils.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/volk/lib/qa_utils.cc b/volk/lib/qa_utils.cc index 9cafd459fa..6a6f87d85e 100644 --- a/volk/lib/qa_utils.cc +++ b/volk/lib/qa_utils.cc @@ -288,6 +288,11 @@ bool run_volk_tests(const int archs[], void (*manual_func)(), std::string name, //first let's get a list of available architectures for the test std::vector<std::string> arch_list = get_arch_list(archs); + if(arch_list.size() < 2) { + std::cout << "no architectures to test" << std::endl; + return false; + } + //now we have to get a function signature by parsing the name std::vector<volk_type_t> inputsig, outputsig; get_signatures_from_name(inputsig, outputsig, name); |