Forum Discussion
Altera_Forum
Honored Contributor
9 years agoPass an array of structs as a buffer
Hi everyone. I am trying to pass an array of structs to the kernel using a buffer. So what I have tried to do at the moment is:
dev_probConfig = (ProbConfig*)_aligned_malloc(N* sizeof(...
Altera_Forum
Honored Contributor
9 years agoOk I have found out that what I need is to use subBuffers but then again I need to specify these buffers in the kernel... I need to pass a dynamic number of objects and I cannot use offsets on buffers hence no pointer aritmetic on buffers.. This sucks!
Basically if I need a dynamic NDRange which means more buffers to pass or data I cannot do it!... Is there anyone with a good suggestion?