discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Volk development using orc


From: Gerald Baier
Subject: Re: [Discuss-gnuradio] Volk development using orc
Date: Fri, 10 Aug 2012 06:40:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

D'oh! Thanks that did the trick. For everyone who is interested, this is the snippet of working code:

gr_complex *out = (gr_complex *) output_items[0];
int noi = noutput_items;
gr_complex temp1[noi];
gr_complex temp2[noi];
// do something with temp1 and temp2
volk_32f_x2_add_32f_a((float *)out, (float *)temp1, (float *)temp2, 2*noi);

Best regards,

Gerald




On 10.08.2012 01:32, Nick Foster wrote:
Just add the complex stream as floats and multiply the length of the operation x2.

--n

On Thu, Aug 9, 2012 at 2:42 PM, Gerald Baier <address@hidden <mailto:address@hidden>> wrote:

    Hi list,

    I am currently trying to wrap my head around volk and have some
    questions concerning orc.

    - Is writing an *.orc file and adding it to the appropriate header
    under volk/include/volk/ everything that has to be done to get an
    initial volk kernel?
    - If I am using orc, do I still have to write a general fallback
    function in pure c++?

    The reason why I want to write a volk kernel is, that I need to
    add two complex vectors. I was only able to find a volk kernel for
    float vectors. Am I missing something? Adding two complex vectors
    seems to be such a basic and obvious operation, is there some kind
    of workaround or a better alternative?

    Thanks a lot,

    Gerald

    _______________________________________________
    Discuss-gnuradio mailing list
    address@hidden <mailto:address@hidden>
    https://lists.gnu.org/mailman/listinfo/discuss-gnuradio






reply via email to

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