From 17dd8d027e6e2ea8765c2f59b6c5797c5097f808 Mon Sep 17 00:00:00 2001 From: Vamsi Date: Fri, 28 Apr 2017 22:25:49 -0700 Subject: [PATCH] Including Volk during linking and runtime --- CMakeLists.txt | 2 +- lib/block1_impl.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71ee181..ccc9a2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,7 +139,7 @@ find_package(Doxygen) # components required to the list of GR_REQUIRED_COMPONENTS (in all # caps such as FILTER or FFT) and change the version to the minimum # API compatible version required. -set(GR_REQUIRED_COMPONENTS RUNTIME) +set(GR_REQUIRED_COMPONENTS RUNTIME VOLK) find_package(Gnuradio "3.7.2" REQUIRED) list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules) include(GrVersion) diff --git a/lib/block1_impl.cc b/lib/block1_impl.cc index d4efc76..d1e55a0 100644 --- a/lib/block1_impl.cc +++ b/lib/block1_impl.cc @@ -24,6 +24,7 @@ #include #include "block1_impl.h" +#include namespace gr { namespace testinggnuradio { @@ -59,6 +60,8 @@ namespace gr { const float *in = (const float *) input_items[0]; float *out = (float *) output_items[0]; + float d_mf_out; + volk_32f_accumulator_s32f(&d_mf_out, &d_mf_out, 1); // Do <+signal processing+> // Tell runtime system how many output items we produced.