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