I need to process a series of images, but i need to use temporal arrays in the kernels, I’m using dinamyc allocation but I need to allocate this variables only once, because this is not fast as I need. Does anybody know how to do this?
maybe I am misunderstanding but just allocate them once, keep the pointer and pass it to each kernel call, don’t free it, and keep the cpu thread that allocated them alive. simple?
you could also use stream if the problem is the time to copy into memory
maybe I am misunderstanding but just allocate them once, keep the pointer and pass it to each kernel call, don’t free it, and keep the cpu thread that allocated them alive. simple?
you could also use stream if the problem is the time to copy into memory
What you are saying is what I need, It sounds easy, but I do not know how to do it, specially the part “keep the cpu thread that allocated them alive”. Could you please explain me this part?
What you are saying is what I need, It sounds easy, but I do not know how to do it, specially the part “keep the cpu thread that allocated them alive”. Could you please explain me this part?