I have a question, probably a simple one. I need to create a "work array" that is only needed during the execution of one "work item". My understanding is that I can simply declare it as a sort of local variable inside of the kernel, for example:
This works just fine, so long as the array size is a constant. But as soon as I set it to something, such as...
I start to get "out of resource" errors raised when I try to read the results back from the buffers.
My question, is what is the best way to create a small temp buffer? Does it need to be a param to the kernel? I've gotten it to work this way, but then I have to create a very large buffer to hold space for all of my work items.