discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] gr::buffer::allocate_buffer: warning:


From: Manu T S
Subject: [Discuss-gnuradio] gr::buffer::allocate_buffer: warning:
Date: Fri, 5 Jul 2013 14:31:57 +0530

A block that i designed takes a vector of length 408 with numpy.int32 components. Work function just copies input to output. Work function definition is given below.
----------------------------------------------------------------------------------------------------
    def work(self, input_items, output_items):
        for i in range(len(input_items[0][0])):
            print input_items[0][0][i],
            output_items[0][0][i] = input_items[0][0][i]
        return len(input_items[0])
-----------------------------------------------------------------------------------------------------

I'm getting the following warning.

gr::buffer::allocate_buffer: warning: tried to allocate
   40 items of size 1632. Due to alignment requirements
   128 were allocated.  If this isn't OK, consider padding
   your structure to a power-of-two bytes.
   On this platform, our allocation granularity is 4096 bytes.
gr::buffer::allocate_buffer: warning: tried to allocate
   40 items of size 1632. Due to alignment requirements
   128 were allocated.  If this isn't OK, consider padding
   your structure to a power-of-two bytes.

What could be the reason for this warning? What could be done to correct this?

--
Manu T S

reply via email to

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