Forum Discussion
Altera_Forum
Honored Contributor
8 years agoLocal variables in Kernel
Hi! I was getting bad results in my kernel, so i decided to printf the local variables marked on the code in bold and blue. At every iteration of the 2nd loop the value from previous itera...
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Buffers created using clCreateBuffer can be released using "clReleaseMemObject". --- Quote End --- Now i only create the buffers once and updated them inside the loop by writing new values on them, before was creating new buffers with same name (inside the loop) and releasing them after the kernel executions but after all giving me that error. Thanks again HRZ :cool: Whats the diference between EnqueueMap and EnqueueWrite, the two also keep stored on the device memory?