Hello, GPGPU hackers
If one use OpenCl to write some packet/data - filtering programm, there will be nesessary
reduce the buffer size ( yes, the Cl-Buffer), cause some packets are “filtered”, and there
is no reason to transfer old (full) amount of data with a lot of garbage to the host.
The size of the new buffer will be know only in or after the Kernel works.
There is a posibility to do that by running the kernel with reduce summ calculation,
then use the result to build the new buffer in host , but thats freaky.
How to dynamicly allocate/deallocate in global memory?
Adwanced task is to allocate many buffers in order to filter content into many different arrays. If possible they must be dinamicly growable :D. Again, this must be done from kernel. Is there any possibilities to do that?