[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] CMake and CUDA

From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] CMake and CUDA
Date: Tue, 21 Apr 2015 10:37:28 -0400

On Mon, Apr 20, 2015 at 1:42 PM, marco Ribero <address@hidden> wrote:
I try to give more details.
In order to create blocks using the standard way(cmake/make/install) with Cuda,I've modified the CMakeList in /lib as shown before. My block is created using gr_modtool and the language is c++.
The fact is that "make test" works well,while in GnuRadio interface give me the following error AttributeError: 'module' object has no attribute 'helloFunc_ff'.
Everything worked well before the addition of CUDA code(so it's not the problem experienced by other users)


cmake_minimum_required(VERSION 2.8)

include(GrPlatform) #define LIB_SUFFIX


list(APPEND helloBlock_sources
    mod_ff_impl.cc helloCUDA.cu

set(helloBlock_sources "${helloBlock_sources}" PARENT_SCOPE)

cuda_add_library(gnuradio-helloBlock SHARED ${helloBlock_sources})
target_link_libraries(gnuradio-helloBlock ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES}
set_target_properties(gnuradio-helloBlock PROPERTIES DEFINE_SYMBOL "gnuradio_helloBlock_EXPORTS")

Have you checked the library itself to see if the block exists there? 'nm -C lib<project name>.so | grep helloBlock' should tell you if it was properly built into your library.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]