Skip to content

Commit

Permalink
Including Volk during linking and runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsi765 committed Apr 29, 2017
1 parent c491618 commit 17dd8d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions lib/block1_impl.cc
Expand Up @@ -24,6 +24,7 @@

#include <gnuradio/io_signature.h>
#include "block1_impl.h"
#include <volk/volk.h>

namespace gr {
namespace testinggnuradio {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 17dd8d0

Please sign in to comment.